Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/18431
Change subject: alpha: Implement HWREI in the ISA.
......................................................................
alpha: Implement HWREI in the ISA.
This moves it out of generic interfaces and the CPU implementations.
Change-Id: I6767d6b26d0ae128b5bdad5830dce838be74e256
---
M src/arch/alpha/isa/decoder.isa
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/src/arch/alpha/isa/decoder.isa b/src/arch/alpha/isa/decoder.isa
index 8789fa9..5635d38 100644
--- a/src/arch/alpha/isa/decoder.isa
+++ b/src/arch/alpha/isa/decoder.isa
@@ -930,7 +930,24 @@
0x1e: decode PALMODE {
0: OpcdecFault::hw_rei();
format BasicOperate {
- 1: hw_rei({{ xc->hwrei(); }}, IsSerializing, IsSerializeBefore);
+ 1: hw_rei({{
+ Addr pc = PC;
+ if (!(pc & 0x3))
+ return std::make_shared<UnimplementedOpcodeFault>();
+
+ LockFlag = false;
+ NPC = IprExcAddr;
+
+ ThreadContext *tc = xc->tcBase();
+ auto *base_stats = tc->getKernelStats();
+ auto *stats = dynamic_cast<AlphaISA::Kernel::Statistics *>(
+ base_stats);
+ assert(stats || !base_stats);
+ if (stats)
+ stats->hwrei();
+
+ CPA::cpa()->swAutoBegin(tc, IprExcAddr);
+ }}, IsSerializing, IsSerializeBefore);
}
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/18431
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I6767d6b26d0ae128b5bdad5830dce838be74e256
Gerrit-Change-Number: 18431
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev