public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Add IndirectBankRegisterMap.add(Register) and .add(Register,Register). Date: Thu, 22 Nov 2007 17:36:00 -0000 [thread overview] Message-ID: <20071122173602.6789.qmail@sourceware.org> (raw) The branch, master has been updated via e4d4f7379e787d9b94795ea76f08994923eae8f9 (commit) from 3f968fbe46d1ba360e37d072921d716e147f6826 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit e4d4f7379e787d9b94795ea76f08994923eae8f9 Author: Andrew Cagney <cagney@redhat.com> Date: Thu Nov 22 11:57:00 2007 -0500 Add IndirectBankRegisterMap.add(Register) and .add(Register,Register). frysk-core/frysk/proc/ChangeLog 2007-11-22 Andrew Cagney <cagney@redhat.com> * IndirectBankRegisterMap.java (add(Register)): New. (add(Register,Register)): New. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/proc/ChangeLog | 5 ++++ frysk-core/frysk/proc/IndirectBankRegisterMap.java | 21 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog index f467745..d64c8f1 100644 --- a/frysk-core/frysk/proc/ChangeLog +++ b/frysk-core/frysk/proc/ChangeLog @@ -1,3 +1,8 @@ +2007-11-22 Andrew Cagney <cagney@redhat.com> + + * IndirectBankRegisterMap.java (add(Register)): New. + (add(Register,Register)): New. + 2007-11-22 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com> * PPCBankRegisters.java: Correcting the bank registers PPC32on64. diff --git a/frysk-core/frysk/proc/IndirectBankRegisterMap.java b/frysk-core/frysk/proc/IndirectBankRegisterMap.java index 069922e..81aadf5 100644 --- a/frysk-core/frysk/proc/IndirectBankRegisterMap.java +++ b/frysk-core/frysk/proc/IndirectBankRegisterMap.java @@ -40,6 +40,7 @@ package frysk.proc; import inua.eio.ByteOrder; +import frysk.isa.Register; /** * Mapping between bank registers, in particular a 32-bit register's @@ -76,6 +77,26 @@ class IndirectBankRegisterMap extends BankRegisterMap { return this; } + IndirectBankRegisterMap add(Register reg32, Register reg64) { + BankRegister map32reg = map32.get(reg32); + if (reg32 == null) + throw new RuntimeException("unknown 32-bit register: " + reg32); + BankRegister map64reg = map64.get(reg64); + if (map64reg == null) + throw new RuntimeException("unknown 64-bit register: " + reg64); + return add(map32reg, map64reg); + } + + IndirectBankRegisterMap add(Register reg32) { + BankRegister map32reg = map32.get(reg32); + if (reg32 == null) + throw new RuntimeException("unknown 32-bit register: " + reg32); + BankRegister map64reg = map64.get(reg32.getName()); + if (map64reg == null) + throw new RuntimeException("unknown 64-bit register: " + reg32); + return add(map32reg, map64reg); + } + IndirectBankRegisterMap add(String map32Name, String map64Name) { BankRegister reg32 = map32.get(map32Name); if (reg32 == null) hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2007-11-22 17:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20071122173602.6789.qmail@sourceware.org \ --to=cagney@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).