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:
Stephan Diestelhorst 2014-03-07 15:56:23 -05:00
parent bf39a475fe
commit bef2086f5b

View file

@ -704,7 +704,7 @@ bool
decodeMrsMsrBankedReg(uint8_t sysM, bool r, bool &isIntReg, int &regIdx, decodeMrsMsrBankedReg(uint8_t sysM, bool r, bool &isIntReg, int &regIdx,
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