Román Cárdenas 1 anno fa
parent
commit
4dc63f6743

+ 1 - 1
.github/workflows/riscv-semihosting.yaml

@@ -1,6 +1,6 @@
 on:
   push:
-    branches: [ master, semihosting ]
+    branches: [ master ]
   pull_request:
   merge_group:
 

+ 1 - 3
riscv-semihosting/src/export.rs

@@ -4,7 +4,6 @@ use crate::hio::{self, HostStream};
 use core::fmt::{self, Write};
 
 static mut HSTDOUT: Option<HostStream> = None;
-
 static mut HSTDERR: Option<HostStream> = None;
 
 #[cfg(not(feature = "u-mode"))]
@@ -57,6 +56,7 @@ pub use machine::*;
 #[cfg(feature = "u-mode")]
 mod user {
     use super::*;
+
     pub fn hstdout_str(s: &str) {
         let _result = unsafe {
             if HSTDOUT.is_none() {
@@ -77,8 +77,6 @@ mod user {
         };
     }
 
-    static mut HSTDERR: Option<HostStream> = None;
-
     pub fn hstderr_str(s: &str) {
         let _result = unsafe {
             if HSTDERR.is_none() {