/home/runner/work/HiCR/HiCR/include/hicr/backends/nosv/common.hpp File Reference

HiCR: /home/runner/work/HiCR/HiCR/include/hicr/backends/nosv/common.hpp File Reference
HiCR
common.hpp File Reference

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.

Functions

void check (int error)
 
void * getTaskMetadata (nosv_task_t task)
 
void * getTaskTypeMetadata (nosv_task_t task)
 
void print_CPU_TID ()
 
void print (const char *message)
 

Detailed Description

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

Function Documentation

◆ check()

void check ( int  error)
inline

Check nOS-V error. Terminate the program if something goes bad

Parameters
[in]errornOS-V error code

◆ getTaskMetadata()

void * getTaskMetadata ( nosv_task_t  task)
inline

Get nOS-V task's metadata

Parameters
[in]task
Returns
task's metadata

◆ getTaskTypeMetadata()

void * getTaskTypeMetadata ( nosv_task_t  task)
inline

Get nOS-V task type's metadata

Parameters
[in]task
Returns
task's metadata

◆ print()

void print ( const char *  message)
inline

Print but with CPU and TID (For debugging)

Parameters
[in]messageto print

◆ print_CPU_TID()

void print_CPU_TID ( )
inline

Print current CPU and Thread ID (For debugging)