Skip to content

thumbv4t-none-eabi target doesn't work #214

Description

@jonathanpallant

In examples/versatileab run:

cargo run --target thumbv4t-none-eabi --bin hello -Zbuild-std

qemu-system-arm will hang without printing anything. I think there's an issue with the branches I added as part of the SMP support where we end up running Arm code in Thumb mode (or vice-versa).

This doesn't seem to happen with the thumbv5te-none-eabi target, probably because that architecture has a richer set of instructions from moving between Arm and Thumb modes. IIRC in Armv4T there is BL and there is BX but there is no BLX, meaning it has to be emulated with a BL to a thunk routine that does a BX (or something like that).

This blocks #211

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions