diff mbox

[1/4] target-lm32: swap operand of wcsr in LOG_DIS()

Message ID 1476311708-14792-1-git-send-email-michael@walle.cc (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Walle Oct. 12, 2016, 10:35 p.m. UTC
Be consistent with the reference manual.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 target-lm32/translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Maydell Oct. 13, 2016, 10:35 a.m. UTC | #1
On 12 October 2016 at 23:35, Michael Walle <michael@walle.cc> wrote:
> Be consistent with the reference manual.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  target-lm32/translate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-lm32/translate.c b/target-lm32/translate.c
> index dc64cc6..fa8416a 100644
> --- a/target-lm32/translate.c
> +++ b/target-lm32/translate.c
> @@ -865,7 +865,7 @@ static void dec_wcsr(DisasContext *dc)
>  {
>      int no;
>
> -    LOG_DIS("wcsr r%d, %d\n", dc->r1, dc->csr);
> +    LOG_DIS("wcsr %d, r%d\n", dc->csr, dc->r1);
>
>      switch (dc->csr) {
>      case CSR_IE:
> --
> 2.1.4

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
Michael Tokarev Oct. 15, 2016, 12:39 p.m. UTC | #2
Applied all 4 to -trivial. With some digging around :)

Thanks,

/mjt
diff mbox

Patch

diff --git a/target-lm32/translate.c b/target-lm32/translate.c
index dc64cc6..fa8416a 100644
--- a/target-lm32/translate.c
+++ b/target-lm32/translate.c
@@ -865,7 +865,7 @@  static void dec_wcsr(DisasContext *dc)
 {
     int no;
 
-    LOG_DIS("wcsr r%d, %d\n", dc->r1, dc->csr);
+    LOG_DIS("wcsr %d, r%d\n", dc->csr, dc->r1);
 
     switch (dc->csr) {
     case CSR_IE: