diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-24 14:25:08 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-24 14:25:08 +0100 |
| commit | e4762c2cdefacf13d26967b7e5f0735c2748026b (patch) | |
| tree | b1be976bb2d0828b70c384dad0dc70a5e849ac53 /test | |
| parent | 501c6bcf4513d40a53022dc93d4156402d43670b (diff) | |
| download | cachepc-e4762c2cdefacf13d26967b7e5f0735c2748026b.tar.gz cachepc-e4762c2cdefacf13d26967b7e5f0735c2748026b.zip | |
Test page tracking with potential branch prediction in guest
Diffstat (limited to 'test')
| -rw-r--r-- | test/kvm-pagestep_guest.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/kvm-pagestep_guest.S b/test/kvm-pagestep_guest.S index ef826ad..a936d2d 100644 --- a/test/kvm-pagestep_guest.S +++ b/test/kvm-pagestep_guest.S @@ -13,6 +13,16 @@ guest_start: nop .endr + mov $0x01, %bx + cmp $0x00, %bx + + # NOTE: this needs to be a relative jmp + je skip +.rept L1_LINESIZE * L1_SETS * 2 + nop +.endr +skip: + mov $0x00, %ax jmp *%ax guest_stop: |
