From b21f0fb29e5105d3c610a35dd2bf565a884dce92 Mon Sep 17 00:00:00 2001 From: "Elliott.Wen" Date: Thu, 22 Oct 2020 13:52:35 +1300 Subject: [PATCH] Fix an error in regression test IsDbusCheckedRegion is used to check whether an memory operation should be checked with the ref Riscv Golden CPU. Only IO region should be checked. --- src/test/cpp/regression/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/cpp/regression/main.cpp b/src/test/cpp/regression/main.cpp index fb8619c..761dc92 100644 --- a/src/test/cpp/regression/main.cpp +++ b/src/test/cpp/regression/main.cpp @@ -3287,7 +3287,7 @@ public: stdinRestore(); #endif } - virtual bool isDBusCheckedRegion(uint32_t address){ return isPerifRegion();} + virtual bool isDBusCheckedRegion(uint32_t address){ return isPerifRegion();} // Should only check IO region virtual bool isPerifRegion(uint32_t addr) { return (addr & 0xF0000000) == 0xF0000000 || (addr & 0xE0000000) == 0xE0000000;} virtual bool isMmuRegion(uint32_t addr) { return true; }