Skip to content

Commit

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

#include "SemihostingCalls.h"

Expand Down Expand Up @@ -184,7 +185,8 @@ 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 = fwrite(buffer.data(), 1, count, file);
size_t num_written = write(fd, buffer.data(), count);
return count - num_written;
}
case SYS_READ:
Expand Down

0 comments on commit b8986e1

Please sign in to comment.