mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-06 19:19:41 +00:00
Make the tests run when built with experimental gcc-cris 4.4. Prettify the logs.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4682 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9012c2bf32
commit
313281198d
|
@ -140,9 +140,9 @@ build: $(CRT) $(SYS) $(TESTCASES)
|
||||||
|
|
||||||
check: $(CRT) $(SYS) $(TESTCASES)
|
check: $(CRT) $(SYS) $(TESTCASES)
|
||||||
@echo -e "\nQEMU simulator."
|
@echo -e "\nQEMU simulator."
|
||||||
@for case in $(TESTCASES); do \
|
for case in $(TESTCASES); do \
|
||||||
echo -n "$$case "; \
|
echo -n "$$case "; \
|
||||||
$(SIM) $$case; \
|
$(SIM) ./$$case; \
|
||||||
done
|
done
|
||||||
check-g: $(CRT) $(SYS) $(TESTCASES)
|
check-g: $(CRT) $(SYS) $(TESTCASES)
|
||||||
@echo -e "\nGDB simulator."
|
@echo -e "\nGDB simulator."
|
||||||
|
|
|
@ -16,7 +16,7 @@ void pass(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _fail(char *reason) {
|
void _fail(char *reason) {
|
||||||
char s[] = "failed: ";
|
char s[] = "\nfailed: ";
|
||||||
int len = mystrlen(reason);
|
int len = mystrlen(reason);
|
||||||
write (1, s, sizeof (s) - 1);
|
write (1, s, sizeof (s) - 1);
|
||||||
write (1, reason, len);
|
write (1, reason, len);
|
||||||
|
@ -41,8 +41,11 @@ void exit (int status) {
|
||||||
|
|
||||||
ssize_t write (int fd, const void *buf, size_t count) {
|
ssize_t write (int fd, const void *buf, size_t count) {
|
||||||
int r;
|
int r;
|
||||||
asm volatile ("moveq 4, $r9\n" /* NR_write. */
|
asm ("move.d %0, $r10\n"
|
||||||
"break 13\n" : : : "memory");
|
"move.d %1, $r11\n"
|
||||||
asm volatile ("move.d $r10, %0\n" : "=r" (r));
|
"move.d %2, $r12\n"
|
||||||
|
"moveq 4, $r9\n" /* NR_write. */
|
||||||
|
"break 13\n" : : "r" (fd), "r" (buf), "r" (count) : "memory");
|
||||||
|
asm ("move.d $r10, %0\n" : "=r" (r));
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ main:
|
||||||
.macro fail
|
.macro fail
|
||||||
.data
|
.data
|
||||||
99:
|
99:
|
||||||
.asciz " checkr3 failed"
|
.asciz " checkr3 failed\n"
|
||||||
.text
|
.text
|
||||||
move.d 99b, $r10
|
move.d 99b, $r10
|
||||||
jsr _fail
|
jsr _fail
|
||||||
|
@ -36,7 +36,7 @@ main:
|
||||||
nop
|
nop
|
||||||
.data
|
.data
|
||||||
99:
|
99:
|
||||||
.asciz "checkr3 failed"
|
.asciz "checkr3 failed\n"
|
||||||
.text
|
.text
|
||||||
move.d 99b, $r10
|
move.d 99b, $r10
|
||||||
jsr _fail
|
jsr _fail
|
||||||
|
@ -79,7 +79,7 @@ main:
|
||||||
9:
|
9:
|
||||||
.data
|
.data
|
||||||
99:
|
99:
|
||||||
.asciz "test_move_cc failed"
|
.asciz "test_move_cc failed\n"
|
||||||
.text
|
.text
|
||||||
move.d 99b, $r10
|
move.d 99b, $r10
|
||||||
jsr _fail
|
jsr _fail
|
||||||
|
@ -108,7 +108,7 @@ main:
|
||||||
9:
|
9:
|
||||||
.data
|
.data
|
||||||
99:
|
99:
|
||||||
.asciz "test_move_cc failed"
|
.asciz "test_move_cc failed\n"
|
||||||
.text
|
.text
|
||||||
move.d 99b, $r10
|
move.d 99b, $r10
|
||||||
jsr _fail
|
jsr _fail
|
||||||
|
|
Loading…
Reference in a new issue