arm: Fix uninitialised warning with gcc 4.8
Small fix for a warning that prevents compilation with gcc 4.8.1 due to detecting that a variable might be uninitialised. The fix is to assign a safe default.
This commit is contained in:
parent
bf39a475fe
commit
bef2086f5b
1 changed files with 1 additions and 1 deletions
|
@ -704,7 +704,7 @@ bool
|
||||||
decodeMrsMsrBankedReg(uint8_t sysM, bool r, bool &isIntReg, int ®Idx,
|
decodeMrsMsrBankedReg(uint8_t sysM, bool r, bool &isIntReg, int ®Idx,
|
||||||
CPSR cpsr, SCR scr, NSACR nsacr, bool checkSecurity)
|
CPSR cpsr, SCR scr, NSACR nsacr, bool checkSecurity)
|
||||||
{
|
{
|
||||||
OperatingMode mode;
|
OperatingMode mode = MODE_UNDEFINED;
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
// R mostly indicates if its a int register or a misc reg, we override
|
// R mostly indicates if its a int register or a misc reg, we override
|
||||||
|
|
Loading…
Reference in a new issue