aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/interp.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2004-02-12 19:32:12 +0000
committerMichael Snyder <msnyder@vmware.com>2004-02-12 19:32:12 +0000
commit3e5117978b9b7ca15f1fcdd17cc3a4edbeb4d5d4 (patch)
treef8d32614d6d9ed82048a4682fe7343b2cc2a6191 /sim/sh/interp.c
parent6a7760b682901be7ae970252843156da407a6d5d (diff)
downloadgdb-3e5117978b9b7ca15f1fcdd17cc3a4edbeb4d5d4.zip
gdb-3e5117978b9b7ca15f1fcdd17cc3a4edbeb4d5d4.tar.gz
gdb-3e5117978b9b7ca15f1fcdd17cc3a4edbeb4d5d4.tar.bz2
2004-02-12 Michael Snyder <msnyder@redhat.com>
* gencode.c (table): Change from char to short. (dumptable): Change generated table from char to short. * interp.c (sh_jump_table, sh_dsp_table, ppi_table): char to short. (init_dsp): Compute size of sh_dsp_table. (sim_resume): Change jump_table from char to short.
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r--sim/sh/interp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index 9810678..b7c7779 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -53,7 +53,7 @@
#define SIGTRAP 5
#endif
-extern unsigned char sh_jump_table[], sh_dsp_table[0x1000], ppi_table[];
+extern unsigned short sh_jump_table[], sh_dsp_table[0x1000], ppi_table[];
int sim_write (SIM_DESC sd, SIM_ADDR addr, unsigned char *buffer, int size);
@@ -1646,7 +1646,7 @@ init_dsp (abfd)
{
int i, tmp;
- for (i = sizeof sh_dsp_table - 1; i >= 0; i--)
+ for (i = (sizeof sh_dsp_table / sizeof sh_dsp_table[0]) - 1; i >= 0; i--)
{
tmp = sh_jump_table[0xf000 + i];
sh_jump_table[0xf000 + i] = sh_dsp_table[i];
@@ -1752,7 +1752,7 @@ sim_resume (sd, step, siggnal)
void (*prev) ();
void (*prev_fpe) ();
- register unsigned char *jump_table = sh_jump_table;
+ register unsigned short *jump_table = sh_jump_table;
register int *R = &(saved_state.asregs.regs[0]);
/*register int T;*/