1:name: ACRN x86_64
2:description: This script runs Zephyr hello_world sample on a bare x86_64 platform.
3
4$name?="i386"
5using sysbus
6mach create $name
7
8$bin?=@https://dl.antmicro.com/projects/renode/acrn--zephyr-hello_world.elf-s_651256-2c595456c50fc3be02f70020d215f0284917e8bb
9machine LoadPlatformDescription @platforms/cpus/acrn_x86_64.repl
10
11showAnalyzer sysbus.uart
12
13macro reset
14"""
15    # set the D flag for Executable code segment
16    cpu SetDescriptor CS 0x0 0x0 0x0 0x400000
17
18    # enable protected mode
19    cpu CR0 0x60000011
20
21    sysbus LoadELF $bin
22"""
23runMacro $reset
24