summaryrefslogtreecommitdiff
path: root/src/cpu/simple/base.hh
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-05-04 20:38:27 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2011-05-04 20:38:27 -0500
commit6e634beb8acda76085aaef6dbf38aa69b6a6dd4f (patch)
treef27f32f705235ee80309dd188bcc3f24194ac366 /src/cpu/simple/base.hh
parent89e7bcca822a4690f630393cd400cf3468298fb1 (diff)
downloadgem5-6e634beb8acda76085aaef6dbf38aa69b6a6dd4f.tar.xz
CPU: Fix a case where timing simple cpu faults can nest.
If we fault, change the state to faulting so that we don't fault again in the same cycle.
Diffstat (limited to 'src/cpu/simple/base.hh')
-rw-r--r--src/cpu/simple/base.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/simple/base.hh b/src/cpu/simple/base.hh
index 2696cc395..0cc90645f 100644
--- a/src/cpu/simple/base.hh
+++ b/src/cpu/simple/base.hh
@@ -124,6 +124,7 @@ class BaseSimpleCPU : public BaseCPU
enum Status {
Idle,
Running,
+ Faulting,
ITBWaitResponse,
IcacheRetry,
IcacheWaitResponse,