This file consists of the common nOS-V function used for all the backend implementations.
More...
#include <cstdio>
#include <cstdlib>
#include <pthread.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <nosv.h>
#include <nosv/hwinfo.h>
#include <hicr/core/exceptions.hpp>
Go to the source code of this file.
This file consists of the common nOS-V function used for all the backend implementations.
- Author
- N. Baumann and L. Terracciano
- Date
- 9/1/2025
◆ check()
Check nOS-V error. Terminate the program if something goes bad
- Parameters
-
[in] | error | nOS-V error code |
◆ getTaskMetadata()
void * getTaskMetadata |
( |
nosv_task_t |
task | ) |
|
|
inline |
Get nOS-V task's metadata
- Parameters
-
- Returns
- task's metadata
◆ getTaskTypeMetadata()
void * getTaskTypeMetadata |
( |
nosv_task_t |
task | ) |
|
|
inline |
Get nOS-V task type's metadata
- Parameters
-
- Returns
- task's metadata
◆ print()
void print |
( |
const char * |
message | ) |
|
|
inline |
Print but with CPU and TID (For debugging)
- Parameters
-
◆ print_CPU_TID()
Print current CPU and Thread ID (For debugging)