forked from Rativel/BurritOS
BurritOS now read configuration file
This commit is contained in:
@@ -344,10 +344,11 @@ mod test {
|
||||
use crate::kernel::exception::{SC_SHUTDOWN, SC_WRITE};
|
||||
use crate::kernel::system::System;
|
||||
use crate::simulator::machine::Machine;
|
||||
use crate::utility::cfg::get_debug_configuration;
|
||||
|
||||
#[test]
|
||||
fn test_sc_shutdown() {
|
||||
let mut machine = Machine::new(true);
|
||||
let mut machine = Machine::new(true, get_debug_configuration());
|
||||
machine.write_int_register(17, SC_SHUTDOWN as i64); // Set type to shutdown
|
||||
// let ecall = Instruction::new(0b000000000000_00000_000_00000_1110011);
|
||||
|
||||
@@ -363,7 +364,7 @@ mod test {
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_sc_print() {
|
||||
let mut machine = Machine::new(true);
|
||||
let mut machine = Machine::new(true, get_debug_configuration());
|
||||
|
||||
let _address = machine.read_int_register(10);
|
||||
// Write string 'HELLO' in memory
|
||||
|
||||
Reference in New Issue
Block a user