Skip to content

fix: emulator CPU state sync on hook only should sync pc, and fix pc syncing on mmio_map callback#2285

Open
appleflyerv3 wants to merge 7 commits intounicorn-engine:devfrom
appleflyerv3:mmio_map_pc_sync
Open

fix: emulator CPU state sync on hook only should sync pc, and fix pc syncing on mmio_map callback#2285
appleflyerv3 wants to merge 7 commits intounicorn-engine:devfrom
appleflyerv3:mmio_map_pc_sync

Conversation

@appleflyerv3
Copy link

No description provided.

Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
@appleflyerv3 appleflyerv3 changed the title fix: sync emulator CPU state before mmio_map read/write handler callback fix: emulator CPU state sync on hook only should sync pc, and fix pc syncing on mmio_map callback Jan 20, 2026
… sync.

Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
- previously, condexec was corrupting on hooks due to the PC sync
also changing condexec state. now that we have changed hooks to
use a only PC sync system without changing condexec, this issue
should be fixed.

Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
… other variables to run.

Signed-off-by: appleflyerv3 <164886846+appleflyerv3@users.noreply.github.com>
@wtdcode
Copy link
Member

wtdcode commented Mar 10, 2026

@appleflyerv3 have you solved your issue with this PR? I'm a bit losing the context.

@appleflyerv3
Copy link
Author

yes its fixed in this PR, tested and works

@appleflyerv3
Copy link
Author

pc is always synced properly when using hooks whereby it doesn't affect anything other than the pc on sync, and pc syncing has been added for mmio map

@appleflyerv3
Copy link
Author

you may also observe the added CI tests in this PR, and they pass on my PR but not on latest 2.1.5-dev

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.

2 participants