include Error keyword in message
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 10 May 2021 14:42:04 +0000 (15:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 10 May 2021 14:42:04 +0000 (15:42 +0100)
src/openpower/decoder/isa/mem.py

index 2b6c118dd8b87f6aefe8579e3ebc77edeaff8121..603d192375724650e7e380503737baedaa8ddbf9 100644 (file)
@@ -76,7 +76,7 @@ class Mem:
         remainder = address & (self.bytes_per_word - 1)
         address = address >> self.word_log2
         if remainder & (width - 1) != 0:
-            exc = MemException("unaligned", "Unaligned access unsupported!")
+            exc = MemException("unaligned", "Unaligned access Error")
             exc.dar = address
             raise exc
         if address in self.mem:
@@ -104,7 +104,7 @@ class Mem:
         print("Writing 0x{:x} to ST 0x{:x} "
               "memaddr 0x{:x}/{:x}".format(v, staddr, addr, remainder, swap))
         if remainder & (width - 1) != 0:
-            exc = MemException("unaligned", "Unaligned access unsupported!")
+            exc = MemException("unaligned", "Unaligned access Error")
             exc.dar = address
             raise exc
         if swap: