This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New method to get real length of register


On Thu, Aug 24, 2006 at 11:00:12AM +0200, Tim Moore wrote:
> > 
> > getLength() should return real length of register to tell the
> > outsiders.
> > 
> > For x86 and x86-64, all the segment registers are different from
> > others, so how about write a new class IA32SegmentRegister, which
> > extends IA32Register(EMT64SegmentRegister extends EMT64Register),
> > and override getLength() to return these real length.
> > Condation or status register makes troubles on PPC64, so a new class,
> > PPC64_32Register, could do the similar thing.
> 
> This is the approach I had in mind.

Hi, Tim and Mark,

Here are some new patches to do what we discussed in this thread.

2006-08-25  Yao Qi  <qiyaoltc@cn.ibm.com>

	* IsaIA32.java: New class for 16-bit segment register on IA32.
	* TestI386Regs.java: Test length of segment register.

	* IsaEMT64.java: New class for 32-bit segment registers on X86_64.
	* TestX8664Regs.java: Test length of segment register.

	* IsaPPC64.java: New class for 32-bit registers on PPC64.

Test them on X86/X86-64/PPC64.
OK to commit?  Thanks!

-- 
Yao Qi

Attachment: IsaIA32.patch
Description: Text document

Attachment: TestI386Regs.patch
Description: Text document

Attachment: IsaEMT64.patch
Description: Text document

Attachment: TestX8664Regs.patch
Description: Text document

Attachment: IsaPPC64.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]