Revision a541f297 target-ppc/op.c

b/target-ppc/op.c
18 18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 19
 */
20 20

  
21
//#define DEBUG_OP
22

  
21 23
#include "config.h"
22 24
#include "exec.h"
23 25

  
24
//#define DEBUG_OP
25

  
26 26
#define regs (env)
27 27
#define Ts0 (int32_t)T0
28 28
#define Ts1 (int32_t)T1
......
226 226
    }
227 227
}
228 228

  
229
PPC_OP(debug)
230
{
231
    env->nip = PARAM(1);
232
    env->brkstate = 1;
233
#if defined (DEBUG_OP)
234
    dump_state();
235
#endif
236
    do_queue_exception(EXCP_DEBUG);
237
    RETURN();
238
}
239

  
229 240
/* Segment registers load and store with immediate index */
230 241
PPC_OP(load_srin)
231 242
{
......
1443 1454
}
1444 1455

  
1445 1456
/* Load and store */
1446
#if defined(CONFIG_USER_ONLY)
1447 1457
#define MEMSUFFIX _raw
1448 1458
#include "op_mem.h"
1449
#else
1459
#if !defined(CONFIG_USER_ONLY)
1450 1460
#define MEMSUFFIX _user
1451 1461
#include "op_mem.h"
1452 1462

  
......
1460 1470
    T0 = regs->spr[SRR1] & ~0xFFFF0000;
1461 1471
    do_store_msr();
1462 1472
    do_tlbia();
1473
#if defined (DEBUG_OP)
1463 1474
    dump_rfi();
1475
#endif
1464 1476
    regs->nip = regs->spr[SRR0] & ~0x00000003;
1477
    do_queue_exception(EXCP_RFI);
1465 1478
    if (env->exceptions != 0) {
1466 1479
        do_check_exception_state();
1467 1480
    }

Also available in: Unified diff