All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR
@ 2016-02-09 20:59 Dirk Müller
  2016-02-10 13:40 ` Andreas Färber
  2016-02-15 17:51 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Dirk Müller @ 2016-02-09 20:59 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Peter Maydell, Andreas Schwab

This is used by the ARM JTAG DCC console in the Linux kernel,
but can be ignored in order to continue booting.

Co-Authored-By: Andreas Schwab <schwab@suse.de>
Signed-off-by: Dirk Mueller <dmueller@suse.com>
---
 target-arm/helper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target-arm/helper.c b/target-arm/helper.c
index 954e6e8..abce416 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -3704,6 +3704,9 @@ static const ARMCPRegInfo debug_cp_reginfo[] = {
     { .name = "DBGVCR",
       .cp = 14, .opc1 = 0, .crn = 0, .crm = 7, .opc2 = 0,
       .access = PL1_RW, .type = ARM_CP_NOP },
+    { .name = "DBGDTRxX_EL0", .state = ARM_CP_STATE_BOTH,
+      .cp = 14, .opc0 = 2, .opc1 = 3, .crn = 0, .crm = 5, .opc2 = 0,
+      .access = PL0_RW, .type = ARM_CP_NOP },
     REGINFO_SENTINEL
 };
 
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR
  2016-02-09 20:59 [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR Dirk Müller
@ 2016-02-10 13:40 ` Andreas Färber
  2016-02-15 17:51 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Färber @ 2016-02-10 13:40 UTC (permalink / raw)
  To: Dirk Müller, QEMU Developers, Andreas Schwab; +Cc: Peter Maydell

Hi Andreas,

Am 09.02.2016 um 21:59 schrieb Dirk Müller:
> This is used by the ARM JTAG DCC console in the Linux kernel,
> but can be ignored in order to continue booting.
> 
> Co-Authored-By: Andreas Schwab <schwab@suse.de>

If this was co-authored by you, we need a proper Signed-off-by please.

> Signed-off-by: Dirk Mueller <dmueller@suse.com>
> ---
>  target-arm/helper.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index 954e6e8..abce416 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -3704,6 +3704,9 @@ static const ARMCPRegInfo debug_cp_reginfo[] = {
>      { .name = "DBGVCR",
>        .cp = 14, .opc1 = 0, .crn = 0, .crm = 7, .opc2 = 0,
>        .access = PL1_RW, .type = ARM_CP_NOP },
> +    { .name = "DBGDTRxX_EL0", .state = ARM_CP_STATE_BOTH,
> +      .cp = 14, .opc0 = 2, .opc1 = 3, .crn = 0, .crm = 5, .opc2 = 0,
> +      .access = PL0_RW, .type = ARM_CP_NOP },
>      REGINFO_SENTINEL
>  };
>  

Otherwise this can have my Reviewed-by. The small x was suggested by me
since it's actually RX/TX depending on R/W.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR
  2016-02-09 20:59 [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR Dirk Müller
  2016-02-10 13:40 ` Andreas Färber
@ 2016-02-15 17:51 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-02-15 17:51 UTC (permalink / raw)
  To: Dirk Müller; +Cc: QEMU Developers, Andreas Schwab

On 9 February 2016 at 20:59, Dirk Müller <dirk@dmllr.de> wrote:
> This is used by the ARM JTAG DCC console in the Linux kernel,
> but can be ignored in order to continue booting.
>
> Co-Authored-By: Andreas Schwab <schwab@suse.de>
> Signed-off-by: Dirk Mueller <dmueller@suse.com>
> ---
>  target-arm/helper.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index 954e6e8..abce416 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -3704,6 +3704,9 @@ static const ARMCPRegInfo debug_cp_reginfo[] = {
>      { .name = "DBGVCR",
>        .cp = 14, .opc1 = 0, .crn = 0, .crm = 7, .opc2 = 0,
>        .access = PL1_RW, .type = ARM_CP_NOP },
> +    { .name = "DBGDTRxX_EL0", .state = ARM_CP_STATE_BOTH,
> +      .cp = 14, .opc0 = 2, .opc1 = 3, .crn = 0, .crm = 5, .opc2 = 0,

You've marked the register as STATE_BOTH, but this is the wrong
encoding for the AArch32 version (which has opc1 = 0); you'll
need to split into one regdef for each.

> +      .access = PL0_RW, .type = ARM_CP_NOP },
>      REGINFO_SENTINEL
>  };

Can you also add an access function for this register, please?
https://git.linaro.org/people/peter.maydell/qemu-arm.git target-arm.next
has the patches I sent recently that implement the MDCR_EL*.TDA
traps, and this new register is in the same category.
Minimum requirement: use access_tda() and add a comment that
we don't implement the configurable EL0 traps. (this is what
we do for MDCCSR_EL0 at the moment). Optional extra: implement
a new access_tdcc() which checks for the MDSCR_EL1.TDCC trap
and the MDCR_EL2.TDA and MDCR_EL3.TDA traps, and use that.
(Bonus points: then use that access function on the other
couple of registers which need it.)

thanks
-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-15 17:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 20:59 [Qemu-devel] [PATCH] target-arm: Implement DBGDTRRX_EL0/DBGDTRTX_EL0 MSR Dirk Müller
2016-02-10 13:40 ` Andreas Färber
2016-02-15 17:51 ` Peter Maydell

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.