summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/output/instruction/1755
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-07 17:23:11 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-07-07 17:23:11 +0000
commitc50b0c4da17b6e83640e4ed2380fffb5f507c846 (patch)
treeb4f203fce1380e2ea3578a784bb8ee060fe42cbd /results/classifier/zero-shot-user-mode/output/instruction/1755
parent61361f925d4914a6608a0076e64cc2399311ed5f (diff)
downloademulator-bug-study-c50b0c4da17b6e83640e4ed2380fffb5f507c846.tar.gz
emulator-bug-study-c50b0c4da17b6e83640e4ed2380fffb5f507c846.zip
add zero-shot results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/output/instruction/1755')
-rw-r--r--results/classifier/zero-shot-user-mode/output/instruction/175526
1 files changed, 26 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/output/instruction/1755 b/results/classifier/zero-shot-user-mode/output/instruction/1755
new file mode 100644
index 00000000..af2d0153
--- /dev/null
+++ b/results/classifier/zero-shot-user-mode/output/instruction/1755
@@ -0,0 +1,26 @@
+instruction: 0.630
+runtime: 0.203
+syscall: 0.167
+
+
+
+qemu-arm fails to execute a cortex-M binary (page_set_flags: Assertion 'last <= GUEST_ADDR_MAX' failed.)
+Description of problem:
+I've noticed that qemu-arm (so linux-user mode) fails to execute a binary targeting cortex-M. This used to work until commit
+"Make the commpage executable".
+Steps to reproduce:
+1. Compile a simple hello.c for arm-eabi. If you don't have such a toolchain, you can download one from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads    For instance https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz (for an x86_64 linux host)
+
+2.# compile for cortex-m3:
+
+3. arm-none-eabi-gcc hello.c -o hello.exe.m3 -mcpu=cortex-m3 -specs=rdimon.specs
+
+4.qemu-arm -cpu cortex-m3 hello.exe.m3
+.....user-exec.c:492: page_set_flags: Assertion 'last <= GUEST_ADDR_MAX' failed.
+
+5. # compile for cortex-a9:
+
+6. arm-none-eabi-gcc hello.c -o hello.exe.a9 -mcpu=cortex-a9 -specs=rdimon.specs
+
+7. qemu-arm -cpu cortex-a9 hello.exe.a9
+Hello