diff --git a/dependencies/xv6/fs.img b/dependencies/xv6/fs.img new file mode 100644 index 0000000..bf7e615 Binary files /dev/null and b/dependencies/xv6/fs.img differ diff --git a/dependencies/xv6/kernel b/dependencies/xv6/kernel new file mode 100755 index 0000000..61709d2 Binary files /dev/null and b/dependencies/xv6/kernel differ diff --git a/dependencies/xv6/kernel.bin b/dependencies/xv6/kernel.bin new file mode 100755 index 0000000..255e17a Binary files /dev/null and b/dependencies/xv6/kernel.bin differ diff --git a/src/cpu.rs b/src/cpu.rs index d509683..2ea2b8e 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -1011,12 +1011,12 @@ impl Cpu { /// Execute a general-purpose instruction. Raises an exception if something is wrong, /// otherwise, returns a fetched instruction. It also increments the program counter by 4 bytes. fn execute_general(&mut self, inst: u64) -> Result<(), Exception> { - match self.inst.set_bits(inst as u32) { - Ok(_) => {} - Err(_) => { - panic!("unknown inst, pc: {:x}, inst: {:x}", self.pc, self.inst.bits); - } - } + // match self.inst.set_bits(inst as u32) { + // Ok(_) => {} + // Err(_) => { + // panic!("unknown inst, pc: {:x}, inst: {:x}", self.pc, self.inst.bits); + // } + // } // 2. Decode. let opcode = inst & 0x0000007f; // let rd = self.inst.rd as u64;