Skip to content

How to Create BE32-Type Instruction Emulation

I want to emulate the TMS570LC43x device, which uses the Cortex-R5F CPU with BE32 instructions. During debugging, I found that QEMU cannot recognize BE32 instructions. I then tried running the already supported versatilepb board (which also uses BE32 instructions) in big-endian mode, but it also failed to work. Is this because I missed some configuration settings, or does QEMU not support boards running BE32 instructions in system mode?

#build kernel

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- versatile_defconfig

#config big-endian

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j64

#I just want to see if the kernel can boot, so I didn’t configure an initrd

qemu-system-aarch64 -M versatilepb -kernel arch/arm/boot/zImage -s -S

Edited by mushu
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information