repo.or.cz
/
qemu
/
agraf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
cris
/
sys.h
blob
c5f88e1a2946f1ed8bae75a8e1bd186a07eea4d2
1
#include <unistd.h>
2
3
#define STRINGIFY(x) #x
4
#define TOSTRING(x) STRINGIFY(x)
5
6
#define CURRENT_LOCATION __FILE__
":"
TOSTRING(__LINE__)
7
8
#define err() \
9
{ \
10
_fail(
"at "
CURRENT_LOCATION
" "
); \
11
}
12
13
#define mb() asm volatile (
""
: : :
"memory"
)
14
15
void
pass
(
void
);
16
void
_fail
(
char
*
reason
);