space register 0 changes for hppa
PATCH 1/1 space register 0 changes for hppa
Hi. I believe I should still have a copyright assignment on file.
Index: opcodes/ChangeLog
===================================================================
RCS file: /cvs/src/src/opcodes/ChangeLog,v
retrieving revision 1.547
ChangeLog +6 -0
@@ -1,3 +1,9 @@ +2003-02-23 Matthew Wilcox <[email protected]> + + * hppa-dis.c: Do not emit a space register if the space register + field is 2 bits and the value is 0 as this is implicit addressing, + not use of space register 0. + 2003-02-12 Dave Brolley <[email protected]> * fr30-desc.c: Regenerate.
Index: opcodes/hppa-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/hppa-dis.c,v
retrieving revision 1.41
hppa-dis.c +5 -2
@@ -541,8 +541,11 @@ print_insn_hppa (memaddr, info)fput_const (extract_5_load (insn), info);break ;case 's' : - (*info->fprintf_func) (info->stream, -"sr%d" ,GET_FIELD (insn,16 ,17 )); + { +int space =GET_FIELD (insn,16 ,17 ); +if (space !=0 ) + (*info->fprintf_func) (info->stream,"sr%d" , space); + }break ;case 'S' :
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
ChangeLog line 5
Quoted 3 lines · Matthew Wilcox
ChangeLog +3
-0+ * hppa-dis.c: Do not emit a space register if the space register + field is 2 bits and the value is 0 as this is implicit addressing, + not use of space register 0.
Hi Matthew,
ChangeLog entries shouldn't be sent as diffs. Write this one as
* hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print the space register when the value is zero.
and put the reason for the change as a comment in the code if you feel you need some justification for the change.
Did you run the binutils testsuite?
Signature · 2 lines
Alan Modra IBM OzLabs - Linux Technology Centre
ChangeLog line 5
Quoted 3 lines · Matthew Wilcox
ChangeLog +3
-0+ * hppa-dis.c: Do not emit a space register if the space register + field is 2 bits and the value is 0 as this is implicit addressing, + not use of space register 0.
Hi Matthew,
ChangeLog entries shouldn't be sent as diffs. Write this one as
* hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print the space register when the value is zero.
and put the reason for the change as a comment in the code if you feel you need some justification for the change.
Did you run the binutils testsuite?
Signature · 2 lines
Alan Modra IBM OzLabs - Linux Technology Centre
Quoted 7 lines · Alan Modra
ChangeLog entries shouldn't be sent as diffs. Write this one as
*
hppa-dis.c(print_insn_hppa<2 bit space register>): Do not print the space register when the value is zero.and put the reason for the change as a comment in the code if you feel you need some justification for the change.
OK. I'm just used to changelogs which're a little more verbose. I don't think it really needs justifying.
Quoted 1 line
Did you run the binutils testsuite?
I hadn't... but I have now, and it doesn't introduce any failures.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 7 lines · Alan Modra
ChangeLog entries shouldn't be sent as diffs. Write this one as
*
hppa-dis.c(print_insn_hppa<2 bit space register>): Do not print the space register when the value is zero.and put the reason for the change as a comment in the code if you feel you need some justification for the change.
OK. I'm just used to changelogs which're a little more verbose. I don't think it really needs justifying.
Quoted 1 line
Did you run the binutils testsuite?
I hadn't... but I have now, and it doesn't introduce any failures.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
In message <[email protected]>, Alan Modra writes :
Quoted 10 lines
Hi Matthew,
ChangeLog entries shouldn't be sent as diffs. Write this one as*
hppa-dis.c(print_insn_hppa<2 bit space register>): Do not print the space register when the value is zero.and put the reason for the change as a comment in the code if you feel you need some justification for the change.
Did you run the binutils testsuite?
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
jeff
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
Is it OK if I fix the testsuite then?
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
Is it OK if I fix the testsuite then?
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
In message <[email protected]>, Matthew Wi
Quoted 5 lines · lcox
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
Is it OK if I fix the testsuite then?
No strong opinions either way.
jeff
In message <[email protected]>, Matthew Wi
Quoted 5 lines · lcox
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
Is it OK if I fix the testsuite then?
No strong opinions either way.
jeff
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
i would, if i could. every attempt i made to get gdb's testsuite to run met with disaster. this was supposed to be a quick bugfix not a major expedition. i give up. someone who can cope with the ridiculous requirements for building gdb targetting hppa can fix this.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
i would, if i could. every attempt i made to get gdb's testsuite to run met with disaster. this was supposed to be a quick bugfix not a major expedition. i give up. someone who can cope with the ridiculous requirements for building gdb targetting hppa can fix this.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
In message <[email protected]>, Matthew Wi
Quoted 8 lines · lcox
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
i would, if i could. every attempt i made to get gdb's testsuite to run met with disaster. this was supposed to be a quick bugfix not a major expedition. i give up. someone who can cope with the ridiculous requirements for building gdb targetting hppa can fix this.
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
Jeff
Quoted 3 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross i386->hppa gdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to find dl.h or machine/save_state.h.
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 3 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross i386->hppa gdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to find dl.h or machine/save_state.h.
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 10 lines · Matthew Wilcox
Quoted 3 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Quoted 6 lines
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
That means the version of texinfo install on that machine is broken. It was fixed in Debian/unstable some months ago.
Signature · 2 lines
Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer
Quoted 10 lines · Matthew Wilcox
Quoted 3 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Quoted 6 lines
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
That means the version of texinfo install on that machine is broken. It was fixed in Debian/unstable some months ago.
Signature · 2 lines
Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer
Quoted 11 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Quoted 4 lines
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Unfortunatly, no one got the i386->hppa GDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils, objdump --disassemble?
Andrew
Quoted 8 lines
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
-- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 7 lines · Andrew Cagney
Quoted 3 lines
get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.Unfortunatly, no one got the
i386->hppaGDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils,objdump --disassemble?
Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
fwiw, it doesn't break the binutils `make check' ;-)
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 7 lines · Andrew Cagney
Quoted 3 lines
get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.Unfortunatly, no one got the
i386->hppaGDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils,objdump --disassemble?
Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
fwiw, it doesn't break the binutils `make check' ;-)
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 7 lines · Andrew Cagney
Quoted 6 lines
Quoted 4 lines
get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Quoted 8 lines
Quoted 1 line
Unfortunatly, no one got the
i386->hppaGDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils,objdump --disassemble?Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
fwiw, it doesn't break the binutils `make check' ;-)
If that happens `oops'. GDB's HP/PA support isn't maintained.
Andrew
Quoted 5 lines · Andrew Cagney
Quoted 3 lines
Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
If that happens `oops'. GDB's HP/PA support isn't maintained.
OK. If at some point it does start to be maintained, I volunteer to fix up the testsuite. It looks fairly straightforward -- deleting the '%sr0,' from these lines:
.*ldw 0\\(sr0,r4\\),r26.*
.*ldh 0\\(sr0,r4\\),r26.*
.*ldb 0\\(sr0,r4\\),r26.*
would be a good start. not sure which other ones will fail. all the ld* and wt*, i'm pretty sure. maybe a few others. i could work it out from the manual, but let's wait for the computer to be able to do it for us?
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 5 lines · Andrew Cagney
Quoted 3 lines
Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
If that happens `oops'. GDB's HP/PA support isn't maintained.
OK. If at some point it does start to be maintained, I volunteer to fix up the testsuite. It looks fairly straightforward -- deleting the '%sr0,' from these lines:
.*ldw 0\\(sr0,r4\\),r26.*
.*ldh 0\\(sr0,r4\\),r26.*
.*ldb 0\\(sr0,r4\\),r26.*
would be a good start. not sure which other ones will fail. all the ld* and wt*, i'm pretty sure. maybe a few others. i could work it out from the manual, but let's wait for the computer to be able to do it for us?
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
I've committed the patch.
Signature · 2 lines
Alan Modra IBM OzLabs - Linux Technology Centre
I've committed the patch.
Signature · 2 lines
Alan Modra IBM OzLabs - Linux Technology Centre
Quoted 7 lines · Andrew Cagney
Quoted 6 lines
Quoted 4 lines
get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Quoted 8 lines
Quoted 1 line
Unfortunatly, no one got the
i386->hppaGDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils,objdump --disassemble?Yep, I can build binutils head-of-cvs just fine as a crosscompiler, and objdump --disassemble does the right thing. Jeff's concern is that this intended output change might break the gdb testsuite.
fwiw, it doesn't break the binutils `make check' ;-)
If that happens `oops'. GDB's HP/PA support isn't maintained.
Andrew
Quoted 11 lines · On Mon, Feb 24, 2003 at 11:39:52AM -0700, [email protected] wrote:
Quoted 4 lines
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
nope, no hpux, only i386-linux and hppa-linux around here. trying to get binutils cvs to build a cross
i386->hppagdb dies in tix (no tk8.4 directory), trying with just `make all-binutils all-gdb' dies being unable to finddl.hormachine/save_state.h.
Unfortunatly, no one got the i386->hppa GDB to build so asking you to do that isn't reasonable. If you've a hppa-linux-gnu box, can you just try binutils, objdump --disassemble?
Andrew
Quoted 8 lines
so switch to trying native on an hppa-linux host with gdb-5.3. that dies claiming hppa-linux is unsupported. apply the debian patches. that build dies trying to find texc.pro.
i'm willing to put in a certain amount of time & effort, but this is too much.
-- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
In message <[email protected]>, Matthew Wi
Quoted 8 lines · lcox
Quoted 2 lines · On Mon, Feb 24, 2003 at 08:01:31AM -0700, [email protected] wrote:
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
i would, if i could. every attempt i made to get gdb's testsuite to run met with disaster. this was supposed to be a quick bugfix not a major expedition. i give up. someone who can cope with the ridiculous requirements for building gdb targetting hppa can fix this.
Err, I built it without difficulty a few months ago (I don't do nearly as much PA work as I used to). Presumably you have an HPUX box, right? That's the easiest way to get it build and running.
Jeff
In message <[email protected]>, Alan Modra writes :
Quoted 10 lines
Hi Matthew,
ChangeLog entries shouldn't be sent as diffs. Write this one as*
hppa-dis.c(print_insn_hppa<2 bit space register>): Do not print the space register when the value is zero.and put the reason for the change as a comment in the code if you feel you need some justification for the change.
Did you run the binutils testsuite?
And the GDB testsuite, which tests the PA disassembler. I'm 99% sure it's going to fail after this change.
jeff