From: Tim Newsome Date: Thu, 14 Jul 2016 21:49:23 +0000 (-0700) Subject: Fix test_32 on 64-bit targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efabfaba3004f9fb454dca0c27205ea3c8a45297;p=riscv-tests.git Fix test_32 on 64-bit targets. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index f042e48..d2ee5f5 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -89,6 +89,8 @@ class SimpleMemoryTest(DeleteServer): self.gdb.command("target extended-remote localhost:%d" % self.server.port) def access_test(self, size, data_type): + self.assertEqual(self.gdb.p("sizeof(%s)" % data_type), + size) a = 0x86753095555aaaa & ((1<<(size*8))-1) b = 0xdeadbeef12345678 & ((1<<(size*8))-1) self.gdb.p("*((%s*)0x%x) = 0x%x" % (data_type, target.ram, a)) @@ -103,7 +105,7 @@ class SimpleMemoryTest(DeleteServer): self.access_test(2, 'short') def test_32(self): - self.access_test(4, 'long') + self.access_test(4, 'int') def test_64(self): self.access_test(8, 'long long')