* [Qemu-devel] [PATCH] alpha: improve testsuite
@ 2008-09-17 13:12 Tristan Gingold
2008-09-17 22:05 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Tristan Gingold @ 2008-09-17 13:12 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
Hi,
misc tiny patches:
* add a 'check' target to the Makefile
* split code in crt.s to create the _exit syscall; also use the value
of main() as exit status
Tristan.
Signed-off-by: Tristan Gingold <gingold@adacore.com>
[-- Attachment #2: q-alpha8.diff --]
[-- Type: application/octet-stream, Size: 950 bytes --]
Index: tests/alpha/crt.s
===================================================================
--- tests/alpha/crt.s (revision 5239)
+++ tests/alpha/crt.s (working copy)
@@ -9,12 +9,15 @@
.prologue 0
ldq $27,main($29) !literal!1
jsr $26,($27)
+ or $0,$0,$16
+ .end _start
+ .globl _exit
+_exit:
lda $0,1
callsys
call_pal 0
- .end _start
.globl write
write:
Index: tests/alpha/Makefile
===================================================================
--- tests/alpha/Makefile (revision 5239)
+++ tests/alpha/Makefile (working copy)
@@ -5,7 +5,7 @@
SIM=../../alpha-linux-user/qemu-alpha
CFLAGS=-O
-LINK=$(CC) -v -o $@ crt.o $< -nostdlib
+LINK=$(CC) -o $@ crt.o $< -nostdlib
TESTS=test-cond test-cmov
@@ -23,7 +23,10 @@
test-cmov: test-cmov.o crt.o
$(LINK)
+check: $(TESTS)
+ for f in $(TESTS); do $(SIM) $$f || exit 1; done
+
clean:
$(RM) *.o *~ hello-alpha $(TESTS)
-.PHONY: clean all
+.PHONY: clean all check
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] alpha: improve testsuite
2008-09-17 13:12 [Qemu-devel] [PATCH] alpha: improve testsuite Tristan Gingold
@ 2008-09-17 22:05 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-09-17 22:05 UTC (permalink / raw)
To: qemu-devel
On Wed, Sep 17, 2008 at 03:12:28PM +0200, Tristan Gingold wrote:
> Hi,
>
> misc tiny patches:
> * add a 'check' target to the Makefile
> * split code in crt.s to create the _exit syscall; also use the value of
> main() as exit status
Applied thanks.
> Tristan.
>
> Signed-off-by: Tristan Gingold <gingold@adacore.com>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-17 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 13:12 [Qemu-devel] [PATCH] alpha: improve testsuite Tristan Gingold
2008-09-17 22:05 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).