Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 20, 2023
1 parent bbb6a29 commit bb53827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ fn main() {
).expect("failed to initialize Unicorn instance");
let emu = &mut unicorn;

// Map 2 MB memory at the above address for Arm64 Machine Code
// Map executable memory at the above address for Arm64 Machine Code
emu.mem_map(
ADDRESS, // Address
2 * 1024 * 1024, // Size
Permission::ALL // Read, Write and Execute Access
ADDRESS, // Address
arm64_code.len(), // Size
Permission::ALL // Read, Write and Execute Access
).expect("failed to map code page");

// Map 16 MB at 0x01000000 for Memory-Mapped I/O by Allwinner A64 Peripherals
Expand Down

0 comments on commit bb53827

Please sign in to comment.