Skip to content

aarch64: access stack in pairs of registers#6

Merged
yugr merged 2 commits intoyugr:masterfrom
Josua-SR:master
Sep 26, 2019
Merged

aarch64: access stack in pairs of registers#6
yugr merged 2 commits intoyugr:masterfrom
Josua-SR:master

Conversation

@Josua-SR
Copy link
Copy Markdown
Contributor

On aarch64 CPUs load and store addresses have to be aligned to multiples
of 16. Otherwise an exception is thrown and the application receives a
SIGBUS. Unlike native CPUs, QEMU does not care about alignment here.

Use stp and ldp instructions for manipulating the stack in register
pairs which automaticlly leads to appropriately aligned addresses.

Signed-off-by: Josua Mayer josua@solid-run.com

Josua-SR and others added 2 commits September 26, 2019 15:43
On aarch64 CPUs load and store addresses have to be aligned to multiples
of 16. Otherwise an exception is thrown and the application receives a
SIGBUS. Unlike actual CPUs, QEMU does not care about alignment here.

Use stp and ldp instructions for manipulating the stack in register
pairs which automaticlly leads to appropriately aligned addresses.

Signed-off-by: Josua Mayer <josua@solid-run.com>
@yugr yugr merged commit 4b477bf into yugr:master Sep 26, 2019
@yugr
Copy link
Copy Markdown
Owner

yugr commented Sep 26, 2019

Thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants