/* SPDX-License-Identifier: MIT */ #include #include #include #include #include "cpu-runtime.h" int main(void) { struct guest_cpu_storage plan[GUEST_CPU_COUNT],before[GUEST_CPU_COUNT]; const uint64_t begin=UINT64_C(0xbb7b8000),span=4096+5*UINT64_C(0x12000); uint64_t end=0; assert(guest_cpu_storage_plan(begin,begin+span,plan,&end)==0); assert(end==begin+span); assert(plan[0].vncr==begin && !plan[0].output && !plan[0].stack_low && !plan[0].stack_high); uint64_t cursor=begin+4096; for (unsigned n=1;n