Revision efdef95f target-ppc/translate.c

b/target-ppc/translate.c
4227 4227
#endif
4228 4228
}
4229 4229

  
4230
static void gen_slbmfee(DisasContext *ctx)
4231
{
4232
#if defined(CONFIG_USER_ONLY)
4233
    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
4234
#else
4235
    if (unlikely(!ctx->mem_idx)) {
4236
        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
4237
        return;
4238
    }
4239
    gen_helper_load_slb_esid(cpu_gpr[rS(ctx->opcode)],
4240
                             cpu_gpr[rB(ctx->opcode)]);
4241
#endif
4242
}
4243

  
4244
static void gen_slbmfev(DisasContext *ctx)
4245
{
4246
#if defined(CONFIG_USER_ONLY)
4247
    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
4248
#else
4249
    if (unlikely(!ctx->mem_idx)) {
4250
        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
4251
        return;
4252
    }
4253
    gen_helper_load_slb_vsid(cpu_gpr[rS(ctx->opcode)],
4254
                             cpu_gpr[rB(ctx->opcode)]);
4255
#endif
4256
}
4230 4257
#endif /* defined(TARGET_PPC64) */
4231 4258

  
4232 4259
/***                      Lookaside buffer management                      ***/
......
8300 8327
GEN_HANDLER2(mtsr_64b, "mtsr", 0x1F, 0x12, 0x06, 0x0010F801, PPC_SEGMENT_64B),
8301 8328
GEN_HANDLER2(mtsrin_64b, "mtsrin", 0x1F, 0x12, 0x07, 0x001F0001,
8302 8329
             PPC_SEGMENT_64B),
8303
GEN_HANDLER2(slbmte, "slbmte", 0x1F, 0x12, 0x0C, 0x00000000, PPC_SEGMENT_64B),
8330
GEN_HANDLER2(slbmte, "slbmte", 0x1F, 0x12, 0x0C, 0x001F0001, PPC_SEGMENT_64B),
8331
GEN_HANDLER2(slbmfee, "slbmfee", 0x1F, 0x13, 0x1C, 0x001F0001, PPC_SEGMENT_64B),
8332
GEN_HANDLER2(slbmfev, "slbmfev", 0x1F, 0x13, 0x1A, 0x001F0001, PPC_SEGMENT_64B),
8304 8333
#endif
8305 8334
GEN_HANDLER(tlbia, 0x1F, 0x12, 0x0B, 0x03FFFC01, PPC_MEM_TLBIA),
8306 8335
GEN_HANDLER(tlbiel, 0x1F, 0x12, 0x08, 0x03FF0001, PPC_MEM_TLBIE),

Also available in: Unified diff