forked from Rativel/BurritOS
Fix global var
This commit is contained in:
committed by
François Autin
parent
e3e217c57f
commit
cf1c7aad5a
@@ -2,16 +2,19 @@ use super::process::Process;
|
||||
use crate::{simulator::machine::{NUM_INT_REGS, NUM_FP_REGS}, utility::system::ObjectType};
|
||||
|
||||
|
||||
#[derive(PartialEq)]
|
||||
struct SimulatorContext {
|
||||
// todo
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
struct ThreadContext {
|
||||
pub int_registers: [i64; NUM_INT_REGS],
|
||||
pub float_registers: [i64; NUM_FP_REGS],
|
||||
pc: i64,
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub struct Thread {
|
||||
name: String,
|
||||
process: Option<Process>,
|
||||
|
||||
Reference in New Issue
Block a user