diff options
author | YenHaoChen <howard25336284@gmail.com> | 2022-10-04 16:46:33 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2022-10-05 09:10:01 +0800 |
commit | 46882addf8fa30c86ccd2fdb5cc621dd98d4e951 (patch) | |
tree | 889b07561805de4c91e82075fa343c5245345eba /debug | |
parent | 5688ba8925513aa1d19ad4d177d0d15467fe67c2 (diff) | |
download | riscv-tests-46882addf8fa30c86ccd2fdb5cc621dd98d4e951.zip riscv-tests-46882addf8fa30c86ccd2fdb5cc621dd98d4e951.tar.gz riscv-tests-46882addf8fa30c86ccd2fdb5cc621dd98d4e951.tar.bz2 |
update gdbserver.py; release tolerance value of MemorySampleTest()
Diffstat (limited to 'debug')
-rwxr-xr-x | debug/gdbserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index a8ed0a0..0f4640c 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -879,7 +879,7 @@ class MemorySampleSingle(MemorySampleTest): self.gdb.command(f"monitor riscv memory_sample 0 0x{addr:x} {sizeof_j}") raw_samples = self.collect_samples() - self.check_incrementing_samples(raw_samples, addr) + self.check_incrementing_samples(raw_samples, addr, tolerance=0x500000) # Buffer should have been emptied by dumping. raw_samples = self.gdb.command("monitor riscv dump_sample_buf", ops=5) @@ -899,7 +899,7 @@ class MemorySampleMixed(MemorySampleTest): raw_samples = self.collect_samples() self.check_incrementing_samples(raw_samples, addr["j"], - tolerance=0x400000) + tolerance=0x500000) self.check_samples_equal(raw_samples, addr["i32"], 0xdeadbeef) if self.hart.xlen >= 64: self.check_samples_equal(raw_samples, addr["i64"], |