mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-31 16:31:02 +00:00
Support more memory on icicle
This commit is contained in:
@@ -376,6 +376,15 @@ impl icicle_cpu::mem::IoMemory for MmioHandler {
|
|||||||
impl IcicleEmulator {
|
impl IcicleEmulator {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let mut virtual_machine = create_x64_vm();
|
let mut virtual_machine = create_x64_vm();
|
||||||
|
let capacity_400mb = 50_000;
|
||||||
|
|
||||||
|
let mut capacity = 8 * 2 * capacity_400mb; // ~8gb
|
||||||
|
if cfg!(target_pointer_width = "32") {
|
||||||
|
capacity = 2 * capacity_400mb; // ~1gb
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual_machine.cpu.mem.set_capacity(capacity);
|
||||||
|
|
||||||
let stop_value = Rc::new(RefCell::new(false));
|
let stop_value = Rc::new(RefCell::new(false));
|
||||||
let exec_hooks = Rc::new(RefCell::new(ExecutionHooks::new(stop_value.clone())));
|
let exec_hooks = Rc::new(RefCell::new(ExecutionHooks::new(stop_value.clone())));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user