qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 00952d: target/loongarch: Fix macros SET_FPU_


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 00952d: target/loongarch: Fix macros SET_FPU_* in cpu.h
Date: Fri, 05 Aug 2022 12:58:41 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 00952d93e0ad3aaba3886803c812549626ac214a
      
https://github.com/qemu/qemu/commit/00952d93e0ad3aaba3886803c812549626ac214a
  Author: Qi Hu <huqi@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M target/loongarch/cpu.h

  Log Message:
  -----------
  target/loongarch: Fix macros SET_FPU_* in cpu.h

The macros SET_FPU_* are used to set corresponding bits of fcsr.
Unfortunately it forgets to set the result and it causes fcsr's
"CAUSE" never being updated. This patch is to fix this bug.

Signed-off-by: Qi Hu <huqi@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20220804132450.314329-1-huqi@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 4cbadc40b99801488bf8d5153d56ae751af15ab9
      
https://github.com/qemu/qemu/commit/4cbadc40b99801488bf8d5153d56ae751af15ab9
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M hw/loongarch/acpi-build.c

  Log Message:
  -----------
  hw/loongarch: remove acpi-build.c unused variable 'aml_len'

Fix a compiler warning on openbsd:
../src/hw/loongarch/acpi-build.c:416:12: warning: variable 'aml_len'
set but not used [-Wunused-but-set-variable]
    size_t aml_len = 0;
           ^

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220721040046.3985609-1-gaosong@loongson.cn>
[rth: Removing aml_len in turn makes fadt set but not used.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 1fe8ac3511fc771376019c6bfe77f317c5e56cd6
      
https://github.com/qemu/qemu/commit/1fe8ac3511fc771376019c6bfe77f317c5e56cd6
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M gdb-xml/loongarch-base64.xml
    M target/loongarch/cpu.c
    M target/loongarch/gdbstub.c

  Log Message:
  -----------
  target/loongarch: Fix GDB get the wrong pc

GDB LoongArch add a register orig_a0, see the base64.xml [1].
We should add the orig_a0 to match the upstream GDB.

[1]: 
https://github.com/bminor/binutils-gdb/blob/master/gdb/features/loongarch/base64.xml

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-2-gaosong@loongson.cn>


  Commit: cd8ef0ed3b20068ed170b6c30999ce8f948fec35
      
https://github.com/qemu/qemu/commit/cd8ef0ed3b20068ed170b6c30999ce8f948fec35
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M target/loongarch/cpu.c

  Log Message:
  -----------
  target/loongarch: add gdb_arch_name()

Matches bfd/cpu-loongarch.c, bfd_loongarch_arch.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-3-gaosong@loongson.cn>


  Commit: 96c3298c0ad11a51c34b253e15abe9f4275e9c57
      
https://github.com/qemu/qemu/commit/96c3298c0ad11a51c34b253e15abe9f4275e9c57
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M gdb-xml/loongarch-base64.xml

  Log Message:
  -----------
  target/loongarch: update loongarch-base64.xml

Update loongarch-base64.xml to match the upstream GDB [1].

[1]:https://github.com/bminor/binutils-gdb/blob/master/gdb/features/loongarch/base64.xml

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-4-gaosong@loongson.cn>


  Commit: d182c3900072ea9b7f4de8785b441a2aa4804d48
      
https://github.com/qemu/qemu/commit/d182c3900072ea9b7f4de8785b441a2aa4804d48
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M configs/targets/loongarch64-softmmu.mak
    A gdb-xml/loongarch-fpu.xml
    R gdb-xml/loongarch-fpu64.xml
    M target/loongarch/gdbstub.c

  Log Message:
  -----------
  target/loongarch: Update loongarch-fpu.xml

Rename loongarch-fpu64.xml to loongarch-fpu.xml and update
loongarch-fpu.xml to match upstream GDB [1]

[1]:https://github.com/bminor/binutils-gdb/blob/master/gdb/features/loongarch/fpu.xml

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-5-gaosong@loongson.cn>


  Commit: 2f149c759ff352399e7a0eca25a62388822d7d13
      
https://github.com/qemu/qemu/commit/2f149c759ff352399e7a0eca25a62388822d7d13
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M linux-user/loongarch64/signal.c
    M target/loongarch/gdbstub.c
    M target/loongarch/internals.h

  Log Message:
  -----------
  target/loongarch: Update gdb_set_fpu() and gdb_get_fpu()

GDB LoongArch fpu use fcc register, update gdb_set_fpu()
and gdb_get_fpu() to match it.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-6-gaosong@loongson.cn>


  Commit: c669f22f1a47897e8d1d595d6b8a59a572f9158c
      
https://github.com/qemu/qemu/commit/c669f22f1a47897e8d1d595d6b8a59a572f9158c
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M configs/targets/loongarch64-softmmu.mak
    M gdb-xml/loongarch-base64.xml
    A gdb-xml/loongarch-fpu.xml
    R gdb-xml/loongarch-fpu64.xml
    M hw/loongarch/acpi-build.c
    M linux-user/loongarch64/signal.c
    M target/loongarch/cpu.c
    M target/loongarch/cpu.h
    M target/loongarch/gdbstub.c
    M target/loongarch/internals.h

  Log Message:
  -----------
  Merge tag 'pull-la-20220805' of https://gitlab.com/rth7680/qemu into staging

LoongArch updates:
  Store value in SET_FPU_* macros.
  Fix unused variable Werrors in acpi-build.c
  Update xml to match upstream gdb.

# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmLtdTodHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV/u3Qf/XON//wiT054wyL3a
# wCZ7c4A96zA0Zu+S1FSo4CZ81wCUpAF5b76fhIU5GrLuWrs/UzOcn+akS8LNLLcM
# nQHqbYNQbkTGOj6DwlZfts8Ul/Ki/Yimjh0gBLFGepzYrsahJ4dCVwQR/KZNkMKf
# xwBn3+yq96DzEmIqjqEQtlet3Wmsow/zDU+RuHbtdrFiSx6MwhLo/e+dHVEEPkEL
# EBmFNETcmAzIg+oFfifkP1ZHgL/Nt2yjElwFZM2pKLMgANVpHOpCTap03KAO/xTt
# LzX5nmJ+4MYPyoEchRaNuq5sB5GqicDGuwGPdhu6qOV589duZ64M4dfm9ErTKEFA
# eE27rA==
# =fcsy
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 05 Aug 2022 12:53:30 PM PDT
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" 
[ultimate]

* tag 'pull-la-20220805' of https://gitlab.com/rth7680/qemu:
  target/loongarch: Update gdb_set_fpu() and gdb_get_fpu()
  target/loongarch: Update loongarch-fpu.xml
  target/loongarch: update loongarch-base64.xml
  target/loongarch: add gdb_arch_name()
  target/loongarch: Fix GDB get the wrong pc
  hw/loongarch: remove acpi-build.c unused variable 'aml_len'
  target/loongarch: Fix macros SET_FPU_* in cpu.h

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/e0d8bb9800bc...c669f22f1a47



reply via email to

[Prev in Thread] Current Thread [Next in Thread]