mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-19 02:16:40 +00:00
kern: automatic PC alignment on ERET is implementation defined
This commit is contained in:
parent
7352d87b20
commit
008bfc27f3
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace ams::kern::arch::arm64 {
|
||||||
std::memset(ctx, 0, sizeof(*ctx));
|
std::memset(ctx, 0, sizeof(*ctx));
|
||||||
|
|
||||||
/* Set PC and argument. */
|
/* Set PC and argument. */
|
||||||
ctx->pc = GetInteger(pc);
|
ctx->pc = GetInteger(pc) & ~(UINT64_C(1));
|
||||||
ctx->x[0] = arg;
|
ctx->x[0] = arg;
|
||||||
|
|
||||||
/* Set PSR. */
|
/* Set PSR. */
|
||||||
|
|
Loading…
Reference in a new issue