diff options
Diffstat (limited to 'sim/msp430/msp430-sim.c')
-rw-r--r-- | sim/msp430/msp430-sim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c index a4ff6a4..b34d23e 100644 --- a/sim/msp430/msp430-sim.c +++ b/sim/msp430/msp430-sim.c @@ -202,11 +202,10 @@ sim_create_inferior (SIM_DESC sd, char * const *env) { unsigned char resetv[2]; - int c; int new_pc; /* Set the PC to the default reset vector if available. */ - c = sim_core_read_buffer (sd, STATE_CPU (sd, 0), read_map, resetv, 0xfffe, 2); + sim_core_read_buffer (sd, STATE_CPU (sd, 0), read_map, resetv, 0xfffe, 2); new_pc = resetv[0] + 256 * resetv[1]; /* If the reset vector isn't initialized, then use the ELF entry. */ |