Skip to content

Commit

Permalink
Enable 64-bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw committed Jan 2, 2025
1 parent ea49883 commit 9eb3abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pvm-shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pub fn resetGenericWithMemory(
module_config.set_step_tracing(true);

let mut parts = ProgramParts::default();
parts.is_64_bit = true;
parts.code_and_jump_table = program.into();
setup_memory(&mut parts, page_map, chunks);
let blob = ProgramBlob::from_parts(parts).unwrap();
Expand Down Expand Up @@ -253,7 +254,7 @@ pub fn setup_memory(

let copy_chunk = |chunk: &Chunk, start, size, into: &mut Vec<u8>| {
if let Some(start) = start {
if chunk.address > start {
if chunk.address >= start {
let rel_address = chunk.address - start;
if rel_address < size {
let rel_address = rel_address as usize;
Expand Down

0 comments on commit 9eb3abd

Please sign in to comment.