Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Dec 31, 2023
1 parent eade038 commit 854d2d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/riscv-semihosting.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: [ master, semihosting ]
branches: [ master ]
pull_request:
merge_group:

Expand Down
5 changes: 3 additions & 2 deletions riscv-semihosting/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use core::fmt::{self, Write};

static mut HSTDOUT: Option<HostStream> = None;

static mut HSTDERR: Option<HostStream> = None;

#[cfg(not(feature = "u-mode"))]
mod machine {
use super::*;
Expand Down Expand Up @@ -57,6 +55,9 @@ pub use machine::*;
#[cfg(feature = "u-mode")]
mod user {
use super::*;

static mut HSTDERR: Option<HostStream> = None;

pub fn hstdout_str(s: &str) {
let _result = unsafe {
if HSTDOUT.is_none() {
Expand Down

0 comments on commit 854d2d7

Please sign in to comment.