From: Robert Reif <reif@earthlink.net>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Bob Breuer <breuerr@mc.net>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Sparc32: dummy implementation of MXCC MMU breakpoint registers
Date: Sat, 18 Jun 2011 18:41:01 -0400 [thread overview]
Message-ID: <4DFD297D.3010607@earthlink.net> (raw)
In-Reply-To: <BANLkTi=A9TDUUp=_XZa6JZzTEsbz=iVuhw@mail.gmail.com>
Blue Swirl wrote:
> Add dummy registers for SuperSPARC MXCC MMU counter breakpoints.
>
> Signed-off-by: Blue Swirl<blauwirbel@gmail.com>
> ---
> target-sparc/cpu.h | 1 +
> target-sparc/op_helper.c | 26 ++++++++++++++++++++++++--
> 2 files changed, 25 insertions(+), 2 deletions(-)
>
> diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
> index 320530e..b5d5291 100644
> --- a/target-sparc/cpu.h
> +++ b/target-sparc/cpu.h
> @@ -403,6 +403,7 @@ typedef struct CPUSPARCState {
> uint32_t mmuregs[32];
> uint64_t mxccdata[4];
> uint64_t mxccregs[8];
> + uint32_t mmubpctrv, mmubpctrc, mmubpctrs, mmubpaction;
> uint64_t mmubpregs[4];
> uint64_t prom_addr;
> #endif
> diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
> index b38691e..e9cc1f5 100644
> --- a/target-sparc/op_helper.c
> +++ b/target-sparc/op_helper.c
> @@ -1940,7 +1940,6 @@ uint64_t helper_ld_asi(target_ulong addr, int
> asi, int size, int sign)
> case 0x31: // Turbosparc RAM snoop
> case 0x32: // Turbosparc page table descriptor diagnostic
> case 0x39: /* data cache diagnostic register */
> - case 0x4c: /* SuperSPARC MMU Breakpoint Action register */
> ret = 0;
> break;
> case 0x38: /* SuperSPARC MMU Breakpoint Control Registers */
> @@ -1966,6 +1965,18 @@ uint64_t helper_ld_asi(target_ulong addr, int
> asi, int size, int sign)
> ret);
> }
> break;
> + case 0x49: /* SuperSPARC MMU Counter Breakpoint Value */
> + ret = env->mmubpctrv;
> + break;
> + case 0x4a: /* SuperSPARC MMU Counter Breakpoint Control */
> + ret = env->mmubpctrc;
> + break;
> + case 0x4b: /* SuperSPARC MMU Counter Breakpoint Status */
> + ret = env->mmubpctrs;
> + break;
> + case 0x4c: /* SuperSPARC MMU Breakpoint Action */
> + ret = env->mmubpaction;
> + break;
> case 8: /* User code access, XXX */
> default:
> do_unassigned_access(addr, 0, 0, asi, size);
> @@ -2304,7 +2315,6 @@ void helper_st_asi(target_ulong addr, uint64_t
> val, int asi, int size)
> // descriptor diagnostic
> case 0x36: /* I-cache flash clear */
> case 0x37: /* D-cache flash clear */
> - case 0x4c: /* breakpoint action */
> break;
> case 0x38: /* SuperSPARC MMU Breakpoint Control Registers*/
> {
> @@ -2328,6 +2338,18 @@ void helper_st_asi(target_ulong addr, uint64_t
> val, int asi, int size)
> env->mmuregs[reg]);
> }
> break;
> + case 0x49: /* SuperSPARC MMU Counter Breakpoint Value */
> + env->mmubpctrv = val& 0xffffffff;
> + break;
> + case 0x4a: /* SuperSPARC MMU Counter Breakpoint Control */
> + env->mmubpctrc = val& 0x3;
> + break;
> + case 0x4b: /* SuperSPARC MMU Counter Breakpoint Status */
> + env->mmubpctrs = val& 0x3;
> + break;
> + case 0x4c: /* SuperSPARC MMU Breakpoint Action */
> + env->mmubpaction = val& 0x1fff;
> + break;
> case 8: /* User code access, XXX */
> case 9: /* Supervisor code access, XXX */
> default:
>
The breakpoint action register is 64 bits wide.
next prev parent reply other threads:[~2011-06-18 22:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-18 21:45 [Qemu-devel] [PATCH] Sparc32: dummy implementation of MXCC MMU breakpoint registers Blue Swirl
2011-06-18 22:11 ` Peter Maydell
2011-06-18 22:41 ` Robert Reif [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-19 13:22 Blue Swirl
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=4DFD297D.3010607@earthlink.net \
--to=reif@earthlink.net \
--cc=blauwirbel@gmail.com \
--cc=breuerr@mc.net \
--cc=qemu-devel@nongnu.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.