aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/gencode.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-21 20:47:33 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-22 00:53:23 -0500
commit6cc98856315993e8723fc2c6a2baabd8dc7fd360 (patch)
tree990935cb08865847114510c8b4c63cf2c66f9d61 /sim/sh/gencode.c
parentc1fc4b4d17ee89a2f3d1a2b23eb84ffdc02ada2f (diff)
downloadgdb-6cc98856315993e8723fc2c6a2baabd8dc7fd360.zip
gdb-6cc98856315993e8723fc2c6a2baabd8dc7fd360.tar.gz
gdb-6cc98856315993e8723fc2c6a2baabd8dc7fd360.tar.bz2
sim: sh: delete global callback/argv
We can use the sim state everywhere now to get these values on the fly.
Diffstat (limited to 'sim/sh/gencode.c')
-rw-r--r--sim/sh/gencode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index aa26e6c..e3978ea 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -1426,7 +1426,7 @@ static op tab[] =
},
{ "", "", "sleep", "0000000000011011",
- "nip += trap (0xc3, &R0, PC, memory, maskl, maskw, endianw);",
+ "nip += trap (sd, 0xc3, &R0, PC, memory, maskl, maskw, endianw);",
},
{ "n", "", "stc <CREG_M>,<REG_N>", "0000nnnnmmmm0010",
@@ -1524,7 +1524,7 @@ static op tab[] =
"long imm = 0xff & i;",
"RAISE_EXCEPTION_IF_IN_DELAY_SLOT ();",
"if (i < 20 || i == 33 || i == 34 || i == 0xc3)",
- " nip += trap (i, &R0, PC, memory, maskl, maskw, endianw);",
+ " nip += trap (sd, i, &R0, PC, memory, maskl, maskw, endianw);",
#if 0
"else {",
/* SH-[12] */