arch-arm,cpu: Introduce a getEMI virtual method on StaticInst.
This takes the place of direct access to the machInst field as used in the MinorCPU model which makes the incorrect assumption that it can arbitrarily treat the ExtMachInst as an integer, and that masking in a certain way can meaningfully classify what the instruction will do. Because that assumption is not correct in general, that had been ifdef-ed out in most ISAs except ARM, and for the other ISAs the value was simply set to zero. Change-Id: I8ac05e65475edc3ccc044afdff09490e2c05ba07 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40098 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -197,6 +197,8 @@ class ArmStaticInst : public StaticInst
|
||||
pcState.advance();
|
||||
}
|
||||
|
||||
uint64_t getEMI() const override { return machInst; }
|
||||
|
||||
std::string generateDisassembly(
|
||||
Addr pc, const Loader::SymbolTable *symtab) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user