public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: jflavio@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Merge branch 'master' of ssh://sources.redhat.com/git/frysk Date: Sat, 10 Nov 2007 14:47:00 -0000 [thread overview] Message-ID: <20071110144752.27179.qmail@sourceware.org> (raw) The branch, master has been updated via 3d96853b2e7b6935288fc4881f2a9230bc743506 (commit) via 26494adb8e756245aebbb591ad28aba39375aa58 (commit) from bddcc9f83077db2a97348cb8689975794c819d55 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 3d96853b2e7b6935288fc4881f2a9230bc743506 Merge: 26494adb8e756245aebbb591ad28aba39375aa58 bddcc9f83077db2a97348cb8689975794c819d55 Author: Jose Flavio Aguilar Paulino <jflavio@bart.ltc.br.ibm.com> Date: Sat Nov 10 12:47:16 2007 -0200 Merge branch 'master' of ssh://sources.redhat.com/git/frysk commit 26494adb8e756245aebbb591ad28aba39375aa58 Author: Jose Flavio Aguilar Paulino <jflavio@bart.ltc.br.ibm.com> Date: Sat Nov 10 02:06:29 2007 -0200 Fix for Power64 (isa registers and groups) ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/isa/ChangeLog | 3 + frysk-core/frysk/isa/PPC64Registers.java | 91 ++++++++++++++++++++++++++++-- 2 files changed, 88 insertions(+), 6 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/isa/ChangeLog b/frysk-core/frysk/isa/ChangeLog index 671c4d2..195f4bc 100644 --- a/frysk-core/frysk/isa/ChangeLog +++ b/frysk-core/frysk/isa/ChangeLog @@ -1,3 +1,6 @@ +2007-11-10 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com> + * PPC64Registers.java: Fixing Power64 registers and groups. + 2007-11-09 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com> * Fixing Power32 ISA. Patching the registers and creating register group diff --git a/frysk-core/frysk/isa/PPC64Registers.java b/frysk-core/frysk/isa/PPC64Registers.java index 611f16d..f93fcb1 100644 --- a/frysk-core/frysk/isa/PPC64Registers.java +++ b/frysk-core/frysk/isa/PPC64Registers.java @@ -173,9 +173,88 @@ public class PPC64Registers extends Registers { public static final Register FPR31 = new Register("fpr31", StandardTypes.FLOAT64B_T); + /* Special Registers */ + public static final Register LR + = new Register("lr", StandardTypes.VOIDPTR64B_T); + public static final Register CTR + = new Register("ctr", StandardTypes.INT64B_T); + public static final Register ARG + = new Register("arg", StandardTypes.INT64B_T); + public static final Register CR + = new Register("cr", StandardTypes.INT64B_T); + public static final Register XER + = new Register("xer", StandardTypes.INT64B_T); + + /* Alti-vec special register */ + public static final Register VRSAVE + = new Register("vrsave", StandardTypes.INT64B_T); + public static final Register VSCR + = new Register("vscr", StandardTypes.INT64B_T); + + /* SPUs special registers (for CELL processors) */ + public static final Register SPEACC + = new Register("speacc", StandardTypes.INT64B_T); + public static final Register SPEFSCR + = new Register("spefscr", StandardTypes.INT64B_T); + + /* Frame-Pointer */ + public static final Register FRP + = new Register("frp", StandardTypes.VOIDPTR64B_T); + + /* Next-Instruction Pointer (Program Pointer) */ public static final Register NIP = new Register("nip", StandardTypes.VOIDPTR64B_T); + /* + * Defining Register Groups + */ + public static final RegisterGroup GENERAL + = new RegisterGroup("general", + new Register[] { + GPR0 , GPR1 , GPR2 , GPR3 , GPR4 , GPR5 , GPR6 , GPR7 , GPR8 , GPR9 , + GPR10, GPR11, GPR12, GPR13, GPR14, GPR15, GPR16, GPR17, GPR18, GPR19, + GPR20, GPR21, GPR22, GPR23, GPR24, GPR25, GPR26, GPR27, GPR28, GPR29, + GPR30, GPR31 }); + + public static final RegisterGroup SPECIAL + = new RegisterGroup("special", + new Register[] { LR, CTR, ARG, CR, XER, + VRSAVE, VSCR, SPEACC, SPEFSCR, + FRP, NIP }); + + public static final RegisterGroup FLOATING_POINTER + = new RegisterGroup("floatingpointer", + new Register[] { + FPR0 , FPR1 , FPR2 , FPR3 , FPR4 , FPR5 , FPR6 , FPR7 , FPR8 , FPR9 , + FPR10, FPR11, FPR12, FPR13, FPR14, FPR15, FPR16, FPR17, FPR18, FPR19, + FPR20, FPR21, FPR22, FPR23, FPR24, FPR25, FPR26, FPR27, FPR28, FPR29, + FPR30, FPR31 }); + + /* + * Creating the special ALL group + */ + public static final RegisterGroup ALL; + static { + Register[] allRegs = new Register[ + GENERAL.getRegisters().length + + SPECIAL.getRegisters().length + + FLOATING_POINTER.getRegisters().length]; + + System.arraycopy(GENERAL.getRegisters(), 0, + allRegs, 0, + GENERAL.getRegisters().length); + + System.arraycopy(SPECIAL.getRegisters(), 0, + allRegs, GENERAL.getRegisters().length, + SPECIAL.getRegisters().length); + + System.arraycopy(FLOATING_POINTER.getRegisters(), 0, + allRegs, GENERAL.getRegisters().length + SPECIAL.getRegisters().length, + FLOATING_POINTER.getRegisters().length); + + ALL = new RegisterGroup("all", allRegs); + } + public Register getProgramCounter() { return NIP; } @@ -185,17 +264,17 @@ public class PPC64Registers extends Registers { } public RegisterGroup getDefaultRegisterGroup() { - // FIXME! - return null; + return GENERAL; } public RegisterGroup getAllRegistersGroup() { - // FIXME! - return null; + return ALL; } + /* + * Default Constructor + */ PPC64Registers() { - // FIXME! - super(null); + super(new RegisterGroup[] { GENERAL, SPECIAL, FLOATING_POINTER, ALL }); } } hooks/post-receive -- frysk system monitor/debugger
next reply other threads:[~2007-11-10 14:47 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-11-10 14:47 jflavio [this message] -- strict thread matches above, loose matches on Subject: below -- 2008-06-05 15:33 rmoseley 2008-05-12 16:30 rmoseley 2008-05-12 16:07 pmuldoon 2008-05-09 17:29 rmoseley 2008-04-02 22:41 pmuldoon 2008-04-01 12:28 pmuldoon 2008-03-20 20:20 rmoseley 2008-03-18 16:22 pmuldoon 2008-02-26 15:32 pmuldoon 2008-01-24 19:23 rmoseley 2008-01-23 21:10 rmoseley 2008-01-03 16:55 pmuldoon 2007-12-13 20:18 rmoseley 2007-12-04 17:45 jflavio 2007-11-30 4:24 jflavio 2007-11-28 21:40 jflavio 2007-11-28 16:20 jflavio 2007-11-28 13:08 pmuldoon 2007-11-28 12:04 mark 2007-11-20 22:47 scox 2007-11-19 17:58 scox 2007-11-17 8:35 rmoseley 2007-11-16 15:59 scox 2007-11-16 14:59 pmuldoon 2007-11-14 2:38 scox 2007-11-14 2:09 jflavio 2007-11-13 0:41 scox 2007-11-10 0:34 scox 2007-11-09 14:59 jflavio
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071110144752.27179.qmail@sourceware.org \ --to=jflavio@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).