Created
August 27, 2019 09:20
-
-
Save sandip4n/4a6b25f764cdb41d2577a75cd854571e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/arch/power/isa/decoder.isa b/src/arch/power/isa/decoder.isa | |
index 0dbe35a88..dd4a3a83c 100644 | |
--- a/src/arch/power/isa/decoder.isa | |
+++ b/src/arch/power/isa/decoder.isa | |
@@ -40,6 +40,14 @@ | |
// | |
decode PO default Unknown::unknown() { | |
+ format IntOp { | |
+ // Fake endianness switch | |
+ 5: esw({{ | |
+ GuestByteOrder = (GuestByteOrder == BigEndianByteOrder) ? | |
+ LittleEndianByteOrder : BigEndianByteOrder; | |
+ }}); | |
+ } | |
+ | |
// Unconditionally branch to a PC-relative or absoulute address. | |
format BranchOp { | |
18: b({{ NIA = CIA + disp; }}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment