Skip to content

Commit

Permalink
Revert "TMP: workaround fuer SYS_WRITE"
Browse files Browse the repository at this point in the history
This reverts commit d001e99.
  • Loading branch information
PhilippvK committed Jul 4, 2024
1 parent cd6fca1 commit 8a35998
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jitlibs/semihost/semihost.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <cstdio>
#include "etiss/ETISS.h"
#include <unistd.h>

#include "SemihostingCalls.h"

Expand Down Expand Up @@ -185,8 +184,7 @@ etiss_int64 semihostingCall(ETISS_CPU *const cpu, ETISS_System *const etissSyste

std::vector<etiss_uint8> buffer = semihostReadSystemMemory(etissSystem, address, count);

// size_t num_written = fwrite(buffer.data(), 1, count, file);
size_t num_written = write(fd, buffer.data(), count);
size_t num_written = fwrite(buffer.data(), 1, count, file);
return count - num_written;
}
case SYS_READ:
Expand Down

0 comments on commit 8a35998

Please sign in to comment.