Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 22, 2023
1 parent c731fcc commit aa6dd98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,13 @@ hook_code: address=0x40089334, size=4
hook_memory: address=0x400b6a54, size=1, mem_type=WRITE, value=0x0
```

Then Unicorn Emulator halts...
# Handle UART Output

TODO: [UART Output](https://gist.github.com/lupyuen/587dbeb9329d9755e4d007dd8e1246cd)

# Unicorn Emulator Halts in NuttX MMU

TODO: Unicorn Emulator halts...

```text
hook_block: address=0x40080cec, size=16
Expand Down Expand Up @@ -506,8 +512,6 @@ hook_code: address=0x40080ef8, size=4
thread 'main' panicked at 'halted emulation: EXCEPTION', src/main.rs:85:7
```

# Unicorn Emulator Halts in NuttX MMU

Unicorn Emulator halts at the NuttX MMU (EL1) code at `0x4008` `0ef8`...

```text
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ fn hook_block(
address: u64, // Block Address
size: u32 // Block Size
) {
// Ignore the memset() loop. TODO: Read the ELF Symbol Table to get address of memset().
if address >= 0x4008_9328 && address <= 0x4008_933c { return; }

// Trace the flow of emulated code
println!("hook_block: address={:#010x}, size={:?}", address, size);
}
Expand Down

0 comments on commit aa6dd98

Please sign in to comment.