-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4014 dr$sim phys: Use physaddr markers in simulators (#5585)
When -use_physical is set, the cache and TLB simulators read the new virtual-to-physical translation markers and use them to simulate physical addresses. Changes drcachesim online mode to leave addresses virtual and insert markers instead, just like offline. Adds a compatibility change note and updates the docs. Includes a fix for -cpu_scheduling where the cached last thread was not reset on a cpu change with no thread change in between. -------------------------------------------------- Tested: Ran manually and looked at logs. Open to suggestions for how to automate testing. $ rm -rf drmemtrace.sim*.dir; ninja && sudo bin64/drrun -stderr_mask 0 -t drcachesim -use_physical -offline -- suite/tests/bin/simple_app && sudo chown -R $USER drmemtrace.sim*.dir && bin64/drrun -t drcachesim -indir drmemtrace.sim*.dir -use_physical -verbose 3 > OUT 2>&1 $ less OUT translating virtual 0x7fed14de0050 to 0xf52ace050 ::3036256.3036256:: @0xf52ace050 instr x3 translating virtual 0x7fed14de0053 to 0xf52ace053 ::3036256.3036256:: @0xf52ace053 instr x5 translating virtual 0x7ffca0af9068 to 0xb3f975068 translating virtual 0x7fed14de0053 to 0xf52ace053 ::3036256.3036256:: @0xf52ace053 write 0xb3f975068 x8 $ bin64/drrun -t drcachesim -indir drmemtrace.sim*.dir -use_physical -simulator_type TLB -verbose 3 > OUT 2>&1 $ les OUT translating virtual 0x7f6f263a3050 to 0xf52ace050 ::3080711.3080711:: @0x7070615f656c706d instr 0xf52ace050 x3 translating virtual 0x7f6f263a3053 to 0xf52ace053 ::3080711.3080711:: @0x7070615f656c706d direct_call 0xf52ace053 x5 translating virtual 0x7ffdeaab3798 to 0xed4c52798 translating virtual 0x7f6f263a3053 to 0xf52ace053 -------------------------------------------------- Issue: #4014
- Loading branch information
1 parent
405dde1
commit fe231aa
Showing
11 changed files
with
280 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.