static_inst.cc (12499:b81688796004) | static_inst.cc (12510:b8203d3676fc) |
---|---|
1/* 2 * Copyright (c) 2010-2014, 2016-2018 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 1004 unchanged lines hidden (view full) --- 1013{ 1014 CPSR new_cpsr = 0; 1015 1016 // gem5 doesn't implement single-stepping, so force the SS bit to 1017 // 0. 1018 new_cpsr.ss = 0; 1019 1020 if (illegalExceptionReturn(tc, cpsr, spsr)) { | 1/* 2 * Copyright (c) 2010-2014, 2016-2018 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 1004 unchanged lines hidden (view full) --- 1013{ 1014 CPSR new_cpsr = 0; 1015 1016 // gem5 doesn't implement single-stepping, so force the SS bit to 1017 // 0. 1018 new_cpsr.ss = 0; 1019 1020 if (illegalExceptionReturn(tc, cpsr, spsr)) { |
1021 // If the SPSR specifies an illegal exception return, 1022 // then PSTATE.{M, nRW, EL, SP} are unchanged and PSTATE.IL 1023 // is set to 1. |
|
1021 new_cpsr.il = 1; | 1024 new_cpsr.il = 1; |
1025 if (cpsr.width) { 1026 new_cpsr.mode = cpsr.mode; 1027 } else { 1028 new_cpsr.width = cpsr.width; 1029 new_cpsr.el = cpsr.el; 1030 new_cpsr.sp = cpsr.sp; 1031 } |
|
1022 } else { 1023 new_cpsr.il = spsr.il; 1024 if (spsr.width && badMode32((OperatingMode)(uint8_t)spsr.mode)) { 1025 new_cpsr.il = 1; 1026 } else if (spsr.width) { 1027 new_cpsr.mode = spsr.mode; 1028 } else { 1029 new_cpsr.el = spsr.el; --- 40 unchanged lines hidden --- | 1032 } else { 1033 new_cpsr.il = spsr.il; 1034 if (spsr.width && badMode32((OperatingMode)(uint8_t)spsr.mode)) { 1035 new_cpsr.il = 1; 1036 } else if (spsr.width) { 1037 new_cpsr.mode = spsr.mode; 1038 } else { 1039 new_cpsr.el = spsr.el; --- 40 unchanged lines hidden --- |