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.
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