id = 2326 title = "qemu-system-arm regression with Qemu 9.0.0" state = "closed" created_at = "2024-05-05T01:03:11.035Z" closed_at = "2024-08-14T02:52:58.840Z" labels = ["accel: TCG", "kind::Bug", "target: arm", "workflow::Patch available"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2326" host-os = "Debian 11" host-arch = "ARM" qemu-version = "9.0.0" guest-os = "OpenADK with uClibc-ng" guest-arch = "ARMv7 (thumb2)" description = """Bootup of the userland crashes: ``` [ 1.713693] Run /init as init process [ 2.372470] Alignment trap: not handling instruction f8530b04 at [<0001225a>] [ 2.391053] 8<--- cut here --- [ 2.392942] Unhandled fault: alignment exception (0x001) at 0x00035335 [ 2.397042] [00035335] *pgd=6066b831, *pte=6030734f, *ppte=6030783f ```""" reproduce = """wget https://debug.openadk.org/vexpress-v2p-ca9.dtb wget https://debug.openadk.org/qemu-arm-vexpress-a9-initramfspiggyback-kernel qemu-system-arm -M vexpress-a9 -nographic -cpu cortex-a9 -net user -net nic,model=lan9118 -dtb vexpress-v2p-ca9.dtb -kernel qemu-arm-vexpress-a9-initramfspiggyback-kernel -qmp tcp:127.0.0.1:4444,server,nowait -no-reboot""" additional = """It works fine for ARM instruction set, but not for Thumb2. Git bisect showed following commit as the problematic one:
From 59754f85ed35cbd5f4bf2663ca2136c78d5b2413 Mon Sep 17 00:00:00 2001
From: Richard Henderson
Date: Fri, 1 Mar 2024 10:41:09 -1000
Subject: [PATCH] target/arm: Do memory type alignment check when translation disabled
"""