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]

Rewrite Disassembler and enable TestOpcodes for PPC64.


Some changes are applied to make Disassembler output instructions one
by one, and TestOpcodes are modified correspondingly for disassembler
test on different architectures, including x86, x86_64, and ppc64.

2006-09-03  Yao Qi  <qiyaoltc@cn.ibm.com>

	* tests/TestOpcodes.java: Enable test for PPC64.

	* tests/DummyByteBuffer.java: Set byte array different values
	on different architectures.

	* cni/Disassembler.cxx (disassemble): Make disassembler output
	in a AT&T format for i386 and X86_64.
        Apply GNU formating.

        * Instruction.java (Instruction): New construction.
        New member to save instruction length.
        Apply GNU formating.

        * Disassembler.java (setCurrentInstruction): append
        instruction to avoid overwrite.
        (setCurrentInstructionLength) : New method to set the length
	of instruction.

Tested this patch on x86/x86_64/ppc64 with frysk cvs head.
OK to commit?  Thanks!

-- 
Yao Qi

Attachment: opcodes.patch
Description: Text document


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