add cputest
This commit is contained in:
parent
304daa3501
commit
7e870cb2e4
36 changed files with 975 additions and 0 deletions
13
cpu-tests/include/trap.h
Normal file
13
cpu-tests/include/trap.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef __TRAP_H__
|
||||
#define __TRAP_H__
|
||||
|
||||
#include <am.h>
|
||||
#include <klib.h>
|
||||
#include <klib-macros.h>
|
||||
|
||||
__attribute__((noinline))
|
||||
void nemu_assert(bool cond) {
|
||||
if (!cond) halt(1);
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue