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.
This commit is contained in:
Elliott.Wen 2020-10-22 13:52:35 +13:00 committed by GitHub
parent aa58b5f830
commit b21f0fb29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3287,7 +3287,7 @@ public:
stdinRestore(); stdinRestore();
#endif #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 isPerifRegion(uint32_t addr) { return (addr & 0xF0000000) == 0xF0000000 || (addr & 0xE0000000) == 0xE0000000;}
virtual bool isMmuRegion(uint32_t addr) { return true; } virtual bool isMmuRegion(uint32_t addr) { return true; }