sim: arm: fix -Wunused-but-set-variable warnings

This commit is contained in:
Mike Frysinger
2023-12-06 06:34:44 -07:00
parent c26f7543b2
commit ad4106f8dd

View File

@@ -99,7 +99,6 @@ ARMul_OSInit (ARMul_State * state)
#ifndef NOOS
#ifndef VALIDATE
ARMword instr, i, j;
struct OSblock *OSptr = (struct OSblock *) state->OSptr;
if (state->OSptr == NULL)
{
@@ -111,7 +110,6 @@ ARMul_OSInit (ARMul_State * state)
}
}
OSptr = (struct OSblock *) state->OSptr;
state->Reg[13] = ADDRSUPERSTACK; /* Set up a stack for the current mode... */
ARMul_SetReg (state, SVC32MODE, 13, ADDRSUPERSTACK);/* ...and for supervisor mode... */
ARMul_SetReg (state, ABORT32MODE, 13, ADDRSUPERSTACK);/* ...and for abort 32 mode... */