qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Markovic <smarkovic@wavecomp.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "aurelien@aurel32.net" <aurelien@aurel32.net>,
	Aleksandar Markovic <amarkovic@wavecomp.com>,
	Aleksandar Rikalo <arikalo@wavecomp.com>
Subject: Re: [Qemu-devel] [PATCH 1/8] target/mips: Move comment containing summary of CP0 registers
Date: Thu, 17 Jan 2019 14:56:26 +0000	[thread overview]
Message-ID: <3c1d98cb-2bc8-90a0-e4a6-c2d8dc331241@wavecomp.com> (raw)
In-Reply-To: <1546533252-26601-2-git-send-email-aleksandar.markovic@rt-rk.com>


On 3.1.19. 17:34, Aleksandar Markovic wrote:
> From: Aleksandar Markovic <amarkovic@wavecomp.com>
>
> Move comment containing summary of CP0 registers. Checkpatch
> script reported some tabs in the resutling diff, so convert
> these tabs to spaces too.
>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---
>   target/mips/cpu.h | 165 +++++++++++++++++++++++++++---------------------------
>   1 file changed, 84 insertions(+), 81 deletions(-)


Reviewed-by: Stefan Markovic <smarokvic@wavecomp.com>


> diff --git a/target/mips/cpu.h b/target/mips/cpu.h
> index 03c03fd..6c2a7e4 100644
> --- a/target/mips/cpu.h
> +++ b/target/mips/cpu.h
> @@ -123,87 +123,6 @@ typedef struct mips_def_t mips_def_t;
>   #define MIPS_KSCRATCH_NUM 6
>   #define MIPS_MAAR_MAX 16 /* Must be an even number. */
>   
> -typedef struct TCState TCState;
> -struct TCState {
> -    target_ulong gpr[32];
> -    target_ulong PC;
> -    target_ulong HI[MIPS_DSP_ACC];
> -    target_ulong LO[MIPS_DSP_ACC];
> -    target_ulong ACX[MIPS_DSP_ACC];
> -    target_ulong DSPControl;
> -    int32_t CP0_TCStatus;
> -#define CP0TCSt_TCU3	31
> -#define CP0TCSt_TCU2	30
> -#define CP0TCSt_TCU1	29
> -#define CP0TCSt_TCU0	28
> -#define CP0TCSt_TMX	27
> -#define CP0TCSt_RNST	23
> -#define CP0TCSt_TDS	21
> -#define CP0TCSt_DT	20
> -#define CP0TCSt_DA	15
> -#define CP0TCSt_A	13
> -#define CP0TCSt_TKSU	11
> -#define CP0TCSt_IXMT	10
> -#define CP0TCSt_TASID	0
> -    int32_t CP0_TCBind;
> -#define CP0TCBd_CurTC	21
> -#define CP0TCBd_TBE	17
> -#define CP0TCBd_CurVPE	0
> -    target_ulong CP0_TCHalt;
> -    target_ulong CP0_TCContext;
> -    target_ulong CP0_TCSchedule;
> -    target_ulong CP0_TCScheFBack;
> -    int32_t CP0_Debug_tcstatus;
> -    target_ulong CP0_UserLocal;
> -
> -    int32_t msacsr;
> -
> -#define MSACSR_FS       24
> -#define MSACSR_FS_MASK  (1 << MSACSR_FS)
> -#define MSACSR_NX       18
> -#define MSACSR_NX_MASK  (1 << MSACSR_NX)
> -#define MSACSR_CEF      2
> -#define MSACSR_CEF_MASK (0xffff << MSACSR_CEF)
> -#define MSACSR_RM       0
> -#define MSACSR_RM_MASK  (0x3 << MSACSR_RM)
> -#define MSACSR_MASK     (MSACSR_RM_MASK | MSACSR_CEF_MASK | MSACSR_NX_MASK | \
> -        MSACSR_FS_MASK)
> -
> -    float_status msa_fp_status;
> -
> -#define NUMBER_OF_MXU_REGISTERS 16
> -    target_ulong mxu_gpr[NUMBER_OF_MXU_REGISTERS - 1];
> -    target_ulong mxu_cr;
> -#define MXU_CR_LC       31
> -#define MXU_CR_RC       30
> -#define MXU_CR_BIAS     2
> -#define MXU_CR_RD_EN    1
> -#define MXU_CR_MXU_EN   0
> -
> -};
> -
> -typedef struct CPUMIPSState CPUMIPSState;
> -struct CPUMIPSState {
> -    TCState active_tc;
> -    CPUMIPSFPUContext active_fpu;
> -
> -    uint32_t current_tc;
> -    uint32_t current_fpu;
> -
> -    uint32_t SEGBITS;
> -    uint32_t PABITS;
> -#if defined(TARGET_MIPS64)
> -# define PABITS_BASE 36
> -#else
> -# define PABITS_BASE 32
> -#endif
> -    target_ulong SEGMask;
> -    uint64_t PAMask;
> -#define PAMASK_BASE ((1ULL << PABITS_BASE) - 1)
> -
> -    int32_t msair;
> -#define MSAIR_ProcID    8
> -#define MSAIR_Rev       0
>   
>   /*
>    *     Summary of CP0 registers
> @@ -314,6 +233,90 @@ struct CPUMIPSState {
>    * 7   TagLo             TagHi                               KScratch<n>
>    *
>    */
> +
> +
> +typedef struct TCState TCState;
> +struct TCState {
> +    target_ulong gpr[32];
> +    target_ulong PC;
> +    target_ulong HI[MIPS_DSP_ACC];
> +    target_ulong LO[MIPS_DSP_ACC];
> +    target_ulong ACX[MIPS_DSP_ACC];
> +    target_ulong DSPControl;
> +    int32_t CP0_TCStatus;
> +#define CP0TCSt_TCU3    31
> +#define CP0TCSt_TCU2    30
> +#define CP0TCSt_TCU1    29
> +#define CP0TCSt_TCU0    28
> +#define CP0TCSt_TMX     27
> +#define CP0TCSt_RNST    23
> +#define CP0TCSt_TDS     21
> +#define CP0TCSt_DT      20
> +#define CP0TCSt_DA      15
> +#define CP0TCSt_A       13
> +#define CP0TCSt_TKSU    11
> +#define CP0TCSt_IXMT    10
> +#define CP0TCSt_TASID   0
> +    int32_t CP0_TCBind;
> +#define CP0TCBd_CurTC   21
> +#define CP0TCBd_TBE     17
> +#define CP0TCBd_CurVPE  0
> +    target_ulong CP0_TCHalt;
> +    target_ulong CP0_TCContext;
> +    target_ulong CP0_TCSchedule;
> +    target_ulong CP0_TCScheFBack;
> +    int32_t CP0_Debug_tcstatus;
> +    target_ulong CP0_UserLocal;
> +
> +    int32_t msacsr;
> +
> +#define MSACSR_FS       24
> +#define MSACSR_FS_MASK  (1 << MSACSR_FS)
> +#define MSACSR_NX       18
> +#define MSACSR_NX_MASK  (1 << MSACSR_NX)
> +#define MSACSR_CEF      2
> +#define MSACSR_CEF_MASK (0xffff << MSACSR_CEF)
> +#define MSACSR_RM       0
> +#define MSACSR_RM_MASK  (0x3 << MSACSR_RM)
> +#define MSACSR_MASK     (MSACSR_RM_MASK | MSACSR_CEF_MASK | MSACSR_NX_MASK | \
> +        MSACSR_FS_MASK)
> +
> +    float_status msa_fp_status;
> +
> +#define NUMBER_OF_MXU_REGISTERS 16
> +    target_ulong mxu_gpr[NUMBER_OF_MXU_REGISTERS - 1];
> +    target_ulong mxu_cr;
> +#define MXU_CR_LC       31
> +#define MXU_CR_RC       30
> +#define MXU_CR_BIAS     2
> +#define MXU_CR_RD_EN    1
> +#define MXU_CR_MXU_EN   0
> +
> +};
> +
> +typedef struct CPUMIPSState CPUMIPSState;
> +struct CPUMIPSState {
> +    TCState active_tc;
> +    CPUMIPSFPUContext active_fpu;
> +
> +    uint32_t current_tc;
> +    uint32_t current_fpu;
> +
> +    uint32_t SEGBITS;
> +    uint32_t PABITS;
> +#if defined(TARGET_MIPS64)
> +# define PABITS_BASE 36
> +#else
> +# define PABITS_BASE 32
> +#endif
> +    target_ulong SEGMask;
> +    uint64_t PAMask;
> +#define PAMASK_BASE ((1ULL << PABITS_BASE) - 1)
> +
> +    int32_t msair;
> +#define MSAIR_ProcID    8
> +#define MSAIR_Rev       0
> +
>   /*
>    * CP0 Register 0
>    */

  parent reply	other threads:[~2019-01-17 14:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-03 16:34 [Qemu-devel] [PATCH 0/8] target/mips: Update Inter-Thread Communication Unit support Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 1/8] target/mips: Move comment containing summary of CP0 registers Aleksandar Markovic
2019-01-08 12:15   ` Aleksandar Markovic
2019-01-17 14:56   ` Stefan Markovic [this message]
2019-01-19  0:20     ` Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 2/8] target/mips: Add preprocessor constants for 32 major " Aleksandar Markovic
2019-01-17 14:57   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 3/8] target/mips: Use " Aleksandar Markovic
2019-01-17 14:58   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 4/8] target/mips: Add fields for SAARI and SAAR " Aleksandar Markovic
2019-01-17 14:59   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 5/8] target/mips: Provide R/W access to " Aleksandar Markovic
2019-01-17 15:00   ` Stefan Markovic
2019-01-19  0:41     ` Aleksandar Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 6/8] target/mips: Add field and R/W access to ITU control register ICR0 Aleksandar Markovic
2019-01-17 15:01   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 7/8] target/mips: Update ITU to utilize SAARI and SAAR CP0 registers Aleksandar Markovic
2019-01-17 15:02   ` Stefan Markovic
2019-01-03 16:34 ` [Qemu-devel] [PATCH 8/8] target/mips: Update ITU to handle bus errors Aleksandar Markovic
2019-01-17 15:04   ` Stefan Markovic
2019-01-23 13:17 ` [Qemu-devel] [PATCH 0/8] target/mips: Update Inter-Thread Communication Unit support no-reply

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=3c1d98cb-2bc8-90a0-e4a6-c2d8dc331241@wavecomp.com \
    --to=smarkovic@wavecomp.com \
    --cc=aleksandar.markovic@rt-rk.com \
    --cc=amarkovic@wavecomp.com \
    --cc=arikalo@wavecomp.com \
    --cc=aurelien@aurel32.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 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 NNTP newsgroup(s).