Revision 985a19d6 target-ppc/translate.c

b/target-ppc/translate.c
1302 1302

  
1303 1303
/* lwarx */
1304 1304
#if defined(CONFIG_USER_ONLY)
1305
#define op_lwarx() gen_op_lwarx_raw()
1305 1306
#define op_stwcx() gen_op_stwcx_raw()
1306 1307
#else
1308
#define op_lwarx() (*gen_op_lwarx[ctx->mem_idx])()
1309
static GenOpFunc *gen_op_lwarx[] = {
1310
    &gen_op_lwarx_user,
1311
    &gen_op_lwarx_kernel,
1312
};
1307 1313
#define op_stwcx() (*gen_op_stwcx[ctx->mem_idx])()
1308 1314
static GenOpFunc *gen_op_stwcx[] = {
1309 1315
    &gen_op_stwcx_user,
......
1320 1326
        gen_op_load_gpr_T1(rB(ctx->opcode));
1321 1327
        gen_op_add();
1322 1328
    }
1323
    op_ldst(lwz);
1329
    op_lwarx();
1324 1330
    gen_op_store_T1_gpr(rD(ctx->opcode));
1325
    gen_op_set_reservation();
1326 1331
}
1327 1332

  
1328 1333
/* stwcx. */
......
3169 3174
        while (lj <= j)
3170 3175
            gen_opc_instr_start[lj++] = 0;
3171 3176
        tb->size = 0;
3177
#if 0
3172 3178
        if (loglevel > 0) {
3173 3179
            page_dump(logfile);
3174 3180
        }
3181
#endif
3175 3182
    } else {
3176 3183
        tb->size = (uint32_t)ctx.nip - pc_start;
3177 3184
    }

Also available in: Unified diff