summaryrefslogtreecommitdiffstats
path: root/test/kvm-eviction_guest.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-23 20:38:36 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-23 20:42:02 +0100
commita554be1738d019e4b5d5b0b0ee9aac6b6ac302a6 (patch)
tree014d2c1ddbe018c53e0cb1a6da30faae26f304b9 /test/kvm-eviction_guest.S
parent769e05dd63ed0379e7325da6e82c0c46c151ef4e (diff)
downloadcachepc-a554be1738d019e4b5d5b0b0ee9aac6b6ac302a6.tar.gz
cachepc-a554be1738d019e4b5d5b0b0ee9aac6b6ac302a6.zip
Use 16-bit realmode assembly for guests (!)
Diffstat (limited to 'test/kvm-eviction_guest.S')
-rw-r--r--test/kvm-eviction_guest.S13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/kvm-eviction_guest.S b/test/kvm-eviction_guest.S
index ce696cd..16a07a5 100644
--- a/test/kvm-eviction_guest.S
+++ b/test/kvm-eviction_guest.S
@@ -7,13 +7,20 @@
.global guest_without_start
.global guest_without_stop
+.align(16)
+.code16gcc
+
guest_with_start:
- mov (L1_LINESIZE * (TARGET_SET + L1_SETS)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %bx
+ movb (%bx), %bl
hlt
- jmp guest_with_start
+
+ mov $0x00, %ax
+ jmp *%ax
guest_with_stop:
guest_without_start:
hlt
- jmp guest_without_start
+ mov $0x00, %ax
+ jmp *%ax
guest_without_stop: