uses write_hex() in exit instead of tohost=0x1
This commit is contained in:
@ -17,6 +17,7 @@ Original Author: Shay Gal-on
|
||||
*/
|
||||
#include "core_portme.h"
|
||||
#include "coremark.h"
|
||||
#include <unistd.h>
|
||||
// Read cycle CSR
|
||||
unsigned long long _read_cycle() {
|
||||
unsigned long long result;
|
||||
@ -38,11 +39,14 @@ unsigned long long _read_cycle() {
|
||||
return result;
|
||||
}
|
||||
|
||||
extern volatile int tohost;
|
||||
extern volatile int fromhost;
|
||||
// extern volatile int tohost;
|
||||
// extern volatile int fromhost;
|
||||
|
||||
void write_hex(int fd, uint32_t hex);
|
||||
|
||||
void exit(int n) {
|
||||
tohost = 0x1;
|
||||
write_hex(STDERR_FILENO, 1);
|
||||
// tohost = 0x1;
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
|
Reference in New Issue
Block a user