diff options
author | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2014-03-07 15:56:23 -0500 |
---|---|---|
committer | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2014-03-07 15:56:23 -0500 |
commit | bef2086f5bb1ef350181791c6dff14d0964a5680 (patch) | |
tree | 9a133b74465a320086292fcf68b02598f95c0680 | |
parent | bf39a475fe8c796e5b0f5b37ee2e4aca724d05f3 (diff) | |
download | gem5-bef2086f5bb1ef350181791c6dff14d0964a5680.tar.xz |
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.
-rw-r--r-- | src/arch/arm/utility.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/arm/utility.cc b/src/arch/arm/utility.cc index 3d7d9c4fc..d5b062621 100644 --- a/src/arch/arm/utility.cc +++ b/src/arch/arm/utility.cc @@ -704,7 +704,7 @@ bool decodeMrsMsrBankedReg(uint8_t sysM, bool r, bool &isIntReg, int ®Idx, CPSR cpsr, SCR scr, NSACR nsacr, bool checkSecurity) { - OperatingMode mode; + OperatingMode mode = MODE_UNDEFINED; bool ok = true; // R mostly indicates if its a int register or a misc reg, we override |