summaryrefslogtreecommitdiffstats
path: root/test/kvm-pagestep_guest.S
blob: a936d2d5f417b9f5837230fb6a69d29d30bc4468 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "cachepc/const.h"

#define TARGET_SET 15

.global guest_start
.global guest_stop

.align(16)
.code16gcc

guest_start:
.rept L1_SIZE
	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: