aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_bugapi.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-01-10 20:42:29 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-01-10 20:42:29 +0000
commit52edddb97066df42beacf09a2f1d2e04605ce717 (patch)
treeef7296cc4c4d2134b4665efd8e9c3e4f918ea6d7 /sim/ppc/emul_bugapi.c
parent0374a10562c2869a483a227be43154c2d68f93c4 (diff)
downloadgdb-52edddb97066df42beacf09a2f1d2e04605ce717.zip
gdb-52edddb97066df42beacf09a2f1d2e04605ce717.tar.gz
gdb-52edddb97066df42beacf09a2f1d2e04605ce717.tar.bz2
Latest changes from Andrew
Diffstat (limited to 'sim/ppc/emul_bugapi.c')
-rw-r--r--sim/ppc/emul_bugapi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/ppc/emul_bugapi.c b/sim/ppc/emul_bugapi.c
index 252c3ce..f325901 100644
--- a/sim/ppc/emul_bugapi.c
+++ b/sim/ppc/emul_bugapi.c
@@ -156,15 +156,15 @@ emul_bugapi_create(device *root,
device_tree_add_found_uw_u_u(init, "",
"data",
OEA_SYSTEM_CALL_ADDRESS,
- 4, 0x1); /*emul-call*/
+ 4, emul_call_instruction);
device_tree_add_found_uw_u_u(init, "",
"data",
OEA_SYSTEM_CALL_ADDRESS + 4,
- 4, 0x4c000064); /*rfi*/
+ 4, emul_rfi_instruction);
device_tree_add_found_uw_u_u(init, "",
"data",
OEA_STALL_CPU_LOOP_ADDRESS,
- 4, 0x48000000); /*b .*/
+ 4, emul_loop_instruction);
}
{
device *init_stack = device_tree_add_found(init, "", "stack");
@@ -204,7 +204,7 @@ emul_bugapi_instruction_call(cpu *processor,
return 0;
switch (call_id) {
case _OUTCHR:
- printf_filtered("%c", cpu_registers(processor)->gpr[3]);
+ printf_filtered("%c", (char)cpu_registers(processor)->gpr[3]);
break;
case _OUTLN:
printf_filtered("\n");