-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support new spawn with native simulator #114
Conversation
src/debug.rs
Outdated
@@ -47,9 +47,11 @@ macro_rules! debug { | |||
macro_rules! debug { | |||
|
|||
($fmt:literal) => { | |||
println!("{}", format!($fmt)); | |||
#[cfg(debug_assertions)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are same with non-simulator configuration. The macro with "#[cfg(feature = "native-simulator")]" can be removed.
src/syscalls/simulator.rs
Outdated
@@ -277,42 +300,95 @@ pub fn spawn( | |||
_bounds: usize, | |||
_spgs: &mut SpawnArgs, | |||
) -> Result<u64, SysError> { | |||
panic!("This is not supported in the native-simulator!"); | |||
panic!("please use exec_cell instead"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "please use spawn_cell instread" ?
No description provided.