Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/55689 )
Change subject: arch-x86: Get rid of the soft int Fault class.
......................................................................
arch-x86: Get rid of the soft int Fault class.
This was never instantiated, and not fully implemented.
Change-Id: I2011e49345e48e194ed9f1540446f0f5a699401d
---
M src/arch/x86/faults.cc
M src/arch/x86/faults.hh
2 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/src/arch/x86/faults.cc b/src/arch/x86/faults.cc
index 3860cc5..0b1dc23 100644
--- a/src/arch/x86/faults.cc
+++ b/src/arch/x86/faults.cc
@@ -70,8 +70,7 @@
HandyM5Reg m5reg = tc->readMiscRegNoEffect(MISCREG_M5_REG);
MicroPC entry;
if (m5reg.mode == LongMode) {
- entry = isSoft() ? extern_label_longModeSoftInterrupt :
- extern_label_longModeInterrupt;
+ entry = extern_label_longModeInterrupt;
} else {
entry = extern_label_legacyModeInterrupt;
}
@@ -84,9 +83,6 @@
panic("Legacy mode interrupts with error codes "
"aren't implemented.");
}
- // Software interrupts shouldn't have error codes. If one
- // does, there would need to be microcode to set it up.
- assert(!isSoft());
tc->setIntReg(INTREG_MICRO(15), errorCode);
}
pc.upc(romMicroPC(entry));
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh
index a8d19d9..a1ff1b0 100644
--- a/src/arch/x86/faults.hh
+++ b/src/arch/x86/faults.hh
@@ -70,7 +70,6 @@
const char *name() const override { return faultName; }
virtual bool isBenign() { return true; }
virtual const char *mnemonic() const { return mnem; }
- virtual bool isSoft() { return false; }
void invoke(ThreadContext *tc, const StaticInstPtr &inst=
nullStaticInstPtr) override;
@@ -369,16 +368,6 @@
nullStaticInstPtr) override;
};
-class SoftwareInterrupt : public X86Interrupt
-{
- public:
- SoftwareInterrupt(uint8_t _vector) :
- X86Interrupt("Software Interrupt", "#INTR", _vector)
- {}
-
- bool isSoft() override { return true; }
-};
-
} // namespace X86ISA
} // namespace gem5
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55689
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2011e49345e48e194ed9f1540446f0f5a699401d
Gerrit-Change-Number: 55689
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s