Skip to contentSkip to conversation

MIPS single stepping

PATCH In review Dirk Behme 5 participants 6 messages Apr 19, 2006 – Apr 20, 2006

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 MIPS single stepping

Hi,

patch below makes GDB single stepping for MIPS work.

For debugging (breakpoint set), in target-mips/translate.c/gen_intermediate_code_internal() gen_opc_pc[] isn't initialized. So in debugging case don't call cpu_restore_state() which then accesses uninitalized gen_opc_pc[]. do_raise_exception_direct() indirectly calls cpu_restore_state(), do_raise_exception() doesn't.

Best regards

Dirk

target-mips/op.c renamed from target-mips/op.c_orig +1 -1
@@ -604,7 +604,7 @@ void op_trap (void)
 
 void op_debug (void)
 {
-  CALL_FROM_TB1(do_raise_exception_direct, EXCP_DEBUG);
+  CALL_FROM_TB1(do_raise_exception, EXCP_DEBUG);
 }
 
 void op_set_lladdr (void)
#1 lore raw

Great, it works fine. It should be integrated in CVS HEAD, so all MIPS users get it...

Many thanks!
Stefan

#2 lore raw
Quoted 2 lines · Stefan Weil

Great, it works fine. It should be integrated in CVS HEAD, so all MIPS users get it...

FWIW, I have some rather massive MIPS update (e.g. MIPS32R2 support) in the works and hope to get it finished enough the next days to make a quilt patchset of it. I plan to integrate the other MIPS patches into it for the time being.

Thiemo

author
#3 lore raw

[Qemu-devel] MIPS patches, was: MIPS single stepping

Quoted 3 lines · Thiemo Seufer
Quoted 1 line · Stefan Weil

Great, it works fine.

Thanks :)

Quoted 4 lines

FWIW, I have some rather massive MIPS update (e.g. MIPS32R2 support) in the works and hope to get it finished enough the next days to make a quilt patchset of it. I plan to integrate the other MIPS patches into it for the time being.

My list of MIPS patches:

MIPS Bugs:
=========

1. [PATCH] Fix overflow conditions for MIPS add / subtract
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00270.html

*OR*

[PATCH] Fix test for two's complement overflow
http://lists.gnu.org/archive/html/qemu-devel/2006-02/msg00154.html

(not sure which is the prefered one. Are both equal?)

2. [PATCH] MIPS CP0 not usable in kernel mode?
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00148.html

3. [PATCH] MIPS single stepping
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00336.html

MIPS Improvements:
==================

1. [PATCH] Huge TLB performance improvement
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00034.html

2. [PATCH] Add MIPS ELF loader
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00185.html

3. [PATCH][MIPS] add "lwu" instruction
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00326.html

4. [PATCH][MIPS] add basic FPU support
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00327.html

Anything missing?

Dirk

#4 lore raw

Re: [Qemu-devel] MIPS patches, was: MIPS single stepping

Quoted 50 lines · Dirk Behme
Quoted 3 lines · Thiemo Seufer
Quoted 1 line · Stefan Weil

Great, it works fine.

Thanks :)

Quoted 4 lines

FWIW, I have some rather massive MIPS update (e.g. MIPS32R2 support) in the works and hope to get it finished enough the next days to make a quilt patchset of it. I plan to integrate the other MIPS patches into it for the time being.

My list of MIPS patches:

MIPS Bugs:
=========

1. [PATCH] Fix overflow conditions for MIPS add / subtract
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00270.html

*OR*

[PATCH] Fix test for two's complement overflow
http://lists.gnu.org/archive/html/qemu-devel/2006-02/msg00154.html

(not sure which is the prefered one. Are both equal?)

2. [PATCH] MIPS CP0 not usable in kernel mode?
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00148.html

3. [PATCH] MIPS single stepping
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00336.html

MIPS Improvements:
==================

1. [PATCH] Huge TLB performance improvement
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00034.html

2. [PATCH] Add MIPS ELF loader
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00185.html

3. [PATCH][MIPS] add "lwu" instruction
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00326.html

4. [PATCH][MIPS] add basic FPU support
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00327.html

Anything missing?

Quoted 7 lines

Dirk

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

You might want to include my patch adding some sockets-related syscalls.

Raph

#5 lore raw

Re: [Qemu-devel] MIPS patches, was: MIPS single stepping

In reply to Dirk Behme
Quoted 6 lines · Dirk Behme
Quoted 4 lines · Thiemo Seufer

FWIW, I have some rather massive MIPS update (e.g. MIPS32R2 support) in the works and hope to get it finished enough the next days to make a quilt patchset of it. I plan to integrate the other MIPS patches into it for the time being.

Excellent news, Thiemo! :-)

Quoted 1 line

My list of MIPS patches:

...

Quoted 2 lines

4. [PATCH][MIPS] add basic FPU support
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00327.html

Thanks for that list, Dirk.

FYI, I continued work on that one and will soonish be posting an updated version which actually will do some more CP1 ops (cvt, trunc, add/sub/mul/div, m*c1, c, bc1*) as well as handling better the Status.FR setting, etc.

Regards,
Marius

Signature · 4 lines
Marius Groeger <[email protected]>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com