diff options
author | Tim Newsome <tim@sifive.com> | 2022-10-06 09:42:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 09:42:42 -0700 |
commit | 828c5c714ca0b1f44f57764bdc6d728cbd3da028 (patch) | |
tree | 80eb4aca9c25c803257e1ad87981b4ed97969aec | |
parent | 9c963737626c7f658eb36773c5f8e6096297f4a3 (diff) | |
parent | 46882addf8fa30c86ccd2fdb5cc621dd98d4e951 (diff) | |
download | riscv-tests-828c5c714ca0b1f44f57764bdc6d728cbd3da028.zip riscv-tests-828c5c714ca0b1f44f57764bdc6d728cbd3da028.tar.gz riscv-tests-828c5c714ca0b1f44f57764bdc6d728cbd3da028.tar.bz2 |
Merge pull request #414 from YenHaoChen/pr-timestamp
update gdbserver.py; tolerance value of MemorySampleTest()
-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"], |