qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 0c6784: elf: Add machine type value for Loong


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 0c6784: elf: Add machine type value for LoongArch
Date: Tue, 21 Dec 2021 12:45:23 -0800

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 0c6784a4b9a654adb84656e40dd616f15395de56
      
https://github.com/qemu/qemu/commit/0c6784a4b9a654adb84656e40dd616f15395de56
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M include/elf.h

  Log Message:
  -----------
  elf: Add machine type value for LoongArch

This is already officially allocated as recorded in GNU binutils
repo [1], and the description is updated in [2]. Add to enable further
work.

[1]: 
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
[2]: 
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-2-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 08b7241b42c6056b5e713213f86fb2946df00169
      
https://github.com/qemu/qemu/commit/08b7241b42c6056b5e713213f86fb2946df00169
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  MAINTAINERS: Add tcg/loongarch64 entry with myself as maintainer

I ported the initial code, so I should maintain it of course.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-3-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: b5bf3ddb48be79d0dc869b654599a23d1c2a6ddf
      
https://github.com/qemu/qemu/commit/b5bf3ddb48be79d0dc869b654599a23d1c2a6ddf
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Add the tcg-target.h file

Support for all optional TCG ops are initially marked disabled; the bits
are to be set in individual commits later.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-4-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 247e613897c1faa5ac06b85f2763042e21f0bb15
      
https://github.com/qemu/qemu/commit/247e613897c1faa5ac06b85f2763042e21f0bb15
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A tcg/loongarch64/tcg-insn-defs.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Add generated instruction opcodes and encoding helpers

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-5-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 106e3aa59971dfc0a2bc08f3672fc0af95d57e3a
      
https://github.com/qemu/qemu/commit/106e3aa59971dfc0a2bc08f3672fc0af95d57e3a
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Add register names, allocation order and input/output sets

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-6-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: a770263d6606f7458ddd2ec4332fa5b36834a82f
      
https://github.com/qemu/qemu/commit/a770263d6606f7458ddd2ec4332fa5b36834a82f
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A tcg/loongarch64/tcg-target-con-str.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Define the operand constraints

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-7-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 9faecd910b4d08a41147f4a800dd14844cba1aa8
      
https://github.com/qemu/qemu/commit/9faecd910b4d08a41147f4a800dd14844cba1aa8
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement necessary relocation operations

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-8-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 33fa38876375d28ba0ce888275bf51608ec1ac43
      
https://github.com/qemu/qemu/commit/33fa38876375d28ba0ce888275bf51608ec1ac43
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement the memory barrier op

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-9-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 7562a490236047a45fbb9814d0b26da9af27ad3a
      
https://github.com/qemu/qemu/commit/7562a490236047a45fbb9814d0b26da9af27ad3a
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement tcg_out_mov and tcg_out_movi

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-10-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 84728cb4769ac5e7f8e8080a1662a288b21fc597
      
https://github.com/qemu/qemu/commit/84728cb4769ac5e7f8e8080a1662a288b21fc597
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement goto_ptr

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-11-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 9f21884e546d7b4ca80ef4b479b57ba41c26c300
      
https://github.com/qemu/qemu/commit/9f21884e546d7b4ca80ef4b479b57ba41c26c300
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement sign-/zero-extension ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-12-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: cf8507c7c7822be3a8a001b4a932aa747cf9f21e
      
https://github.com/qemu/qemu/commit/cf8507c7c7822be3a8a001b4a932aa747cf9f21e
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement not/and/or/xor/nor/andc/orc ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-13-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 23faf68076c99b57171ca9640ad5dfb638c6015d
      
https://github.com/qemu/qemu/commit/23faf68076c99b57171ca9640ad5dfb638c6015d
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement deposit/extract ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-14-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: b157402c30135762fb7bc8d880b18ca918dd689d
      
https://github.com/qemu/qemu/commit/b157402c30135762fb7bc8d880b18ca918dd689d
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement bswap{16,32,64} ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-15-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 6ddfc137aa06439bbbd5b8b9b77a9eef692a77cd
      
https://github.com/qemu/qemu/commit/6ddfc137aa06439bbbd5b8b9b77a9eef692a77cd
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement clz/ctz ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-16-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: b6a877b17c52eaeeb7b671f820adbe81d8522925
      
https://github.com/qemu/qemu/commit/b6a877b17c52eaeeb7b671f820adbe81d8522925
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-17-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 0af4def9c6e457654e5136f1dd925697a30813b1
      
https://github.com/qemu/qemu/commit/0af4def9c6e457654e5136f1dd925697a30813b1
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement add/sub ops

The neg_i{32,64} ops is fully expressible with sub, so omitted for
simplicity.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-18-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 0e0f36aa3a04c5bcfa7b2aa5dc04ad43181012e6
      
https://github.com/qemu/qemu/commit/0e0f36aa3a04c5bcfa7b2aa5dc04ad43181012e6
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc
    M tcg/loongarch64/tcg-target.h

  Log Message:
  -----------
  tcg/loongarch64: Implement mul/mulsh/muluh/div/divu/rem/remu ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-19-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: fb13929190bf18d1f1f00ecfcca882d791f8bde1
      
https://github.com/qemu/qemu/commit/fb13929190bf18d1f1f00ecfcca882d791f8bde1
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement br/brcond ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-20-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: eba80f628ac69e33f22b4993e37720836fe74878
      
https://github.com/qemu/qemu/commit/eba80f628ac69e33f22b4993e37720836fe74878
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement setcond ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-21-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 6bce7866fd57e1e177dc37eab86a99a5f6f867f3
      
https://github.com/qemu/qemu/commit/6bce7866fd57e1e177dc37eab86a99a5f6f867f3
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement tcg_out_call

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-22-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 366dd715b389febf05ea4c4c69d1ff5942c71e10
      
https://github.com/qemu/qemu/commit/366dd715b389febf05ea4c4c69d1ff5942c71e10
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement simple load/store ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-23-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 96c444faee0c45e19253ac1f359afaf752f02991
      
https://github.com/qemu/qemu/commit/96c444faee0c45e19253ac1f359afaf752f02991
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target-con-set.h
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-24-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 548f4a85686e027ad029f9cc45e216ad19ed25ca
      
https://github.com/qemu/qemu/commit/548f4a85686e027ad029f9cc45e216ad19ed25ca
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement tcg_target_qemu_prologue

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-25-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 4d3f868400e34485a2fda554dd86391ff258caa4
      
https://github.com/qemu/qemu/commit/4d3f868400e34485a2fda554dd86391ff258caa4
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement exit_tb/goto_tb

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-26-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 68f3daf2716e8b7667559a74b8086bddd5b0349a
      
https://github.com/qemu/qemu/commit/68f3daf2716e8b7667559a74b8086bddd5b0349a
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Implement tcg_target_init

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-27-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: cc0a77cdd3148803bba8ed6a28e26b061a157f67
      
https://github.com/qemu/qemu/commit/cc0a77cdd3148803bba8ed6a28e26b061a157f67
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M tcg/loongarch64/tcg-target.c.inc

  Log Message:
  -----------
  tcg/loongarch64: Register the JIT

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-28-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: d96a30554db2b106b74a0b4d8f7033647626a004
      
https://github.com/qemu/qemu/commit/d96a30554db2b106b74a0b4d8f7033647626a004
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A common-user/host/loongarch64/safe-syscall.inc.S

  Log Message:
  -----------
  common-user: Add safe syscall handling for loongarch64 hosts

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221054105.178795-29-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: bdfa9a50bf67e2f580276e230716a514fc379ab7
      
https://github.com/qemu/qemu/commit/bdfa9a50bf67e2f580276e230716a514fc379ab7
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    A linux-user/host/loongarch64/host-signal.h

  Log Message:
  -----------
  linux-user: Implement CPU-specific signal handler for loongarch64 hosts

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-30-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: fbff56b6be2419b1314b564213af39f6c4a886f8
      
https://github.com/qemu/qemu/commit/fbff56b6be2419b1314b564213af39f6c4a886f8
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M configure
    M meson.build

  Log Message:
  -----------
  configure, meson.build: Mark support for loongarch64 hosts

Example output of `uname -a` on an initial Gentoo LA64 port, running
the upstream submission version of Linux (with some very minor patches
not influencing output here):

> Linux <hostname> 5.14.0-10342-g37a00851b145 #5 SMP PREEMPT Tue Aug 10 
> 12:56:24 PM CST 2021 loongarch64 GNU/Linux

And the same on the vendor-supplied Loongnix 20 system, with an early
in-house port of Linux, and using the old-world ABI:

> Linux <hostname> 4.19.167-rc5.lnd.1-loongson-3 #1 SMP Sat Apr 17 07:32:32 UTC 
> 2021 loongarch64 loongarch64 loongarch64 GNU/Linux

So a name of "loongarch64" matches both, fortunately.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-31-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: a00966914bf8e5223427894ae36bb439c4b266dd
      
https://github.com/qemu/qemu/commit/a00966914bf8e5223427894ae36bb439c4b266dd
  Author: WANG Xuerui <git@xen0n.name>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/container-cross.yml
    M .gitlab-ci.d/crossbuilds.yml
    M MAINTAINERS
    M tests/docker/Makefile.include
    A tests/docker/dockerfiles/gentoo-loongarch64-cross.docker
    A 
tests/docker/dockerfiles/gentoo-loongarch64-cross.docker.d/build-toolchain.sh

  Log Message:
  -----------
  tests/docker: Add gentoo-loongarch64-cross image and run cross builds in 
GitLab

Normally this would be based on qemu/debian10 or qemu/ubuntu2004, but
after a week-long struggle, I still cannot build stage2 gcc with the
known-good LoongArch toolchain sources, so I chose the least-resistance
path with Gentoo as base image. As this image is not expected to be
re-built by CI, like hexagon, it should not take much maintenance
effort; also it's expected to be replaced as soon as Debian is
available.

As the LoongArch *target* has not been merged yet, a check-tcg job is
not added at the moment, but cross builds with the TCG *host* port are
already possible, and added to CI matrix.

Due to constant flux of the toolchain sources used (especially that of
glibc), the binaries built with this image may or may not work when
run on actual hardware, but still useful for ensuring things correctly
build. This image is expected to be updated every once in a while,
before everything settles down.

As a reference, the image takes about 25 minutes to rebuild on a
Threadripper 3990X system with Docker operating on HDD; YMMV but it
probably wouldn't become significantly shorter, as everything needs to
be built from source in our case.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211221054105.178795-32-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 6fcd6859134b3b12baa26553e702223b67f2b8cb
      
https://github.com/qemu/qemu/commit/6fcd6859134b3b12baa26553e702223b67f2b8cb
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/container-cross.yml
    M .gitlab-ci.d/crossbuilds.yml
    M MAINTAINERS
    A common-user/host/loongarch64/safe-syscall.inc.S
    M configure
    M include/elf.h
    A linux-user/host/loongarch64/host-signal.h
    M meson.build
    A tcg/loongarch64/tcg-insn-defs.c.inc
    A tcg/loongarch64/tcg-target-con-set.h
    A tcg/loongarch64/tcg-target-con-str.h
    A tcg/loongarch64/tcg-target.c.inc
    A tcg/loongarch64/tcg-target.h
    M tests/docker/Makefile.include
    A tests/docker/dockerfiles/gentoo-loongarch64-cross.docker
    A 
tests/docker/dockerfiles/gentoo-loongarch64-cross.docker.d/build-toolchain.sh

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

Initial commit of tcg/loongarch64

# gpg: Signature made Tue 21 Dec 2021 08:11:57 AM PST
# gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg:                issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" 
[unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F

* tag 'pull-loong-20211221' of https://gitlab.com/rth7680/qemu: (31 commits)
  tests/docker: Add gentoo-loongarch64-cross image and run cross builds in 
GitLab
  configure, meson.build: Mark support for loongarch64 hosts
  linux-user: Implement CPU-specific signal handler for loongarch64 hosts
  common-user: Add safe syscall handling for loongarch64 hosts
  tcg/loongarch64: Register the JIT
  tcg/loongarch64: Implement tcg_target_init
  tcg/loongarch64: Implement exit_tb/goto_tb
  tcg/loongarch64: Implement tcg_target_qemu_prologue
  tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops
  tcg/loongarch64: Implement simple load/store ops
  tcg/loongarch64: Implement tcg_out_call
  tcg/loongarch64: Implement setcond ops
  tcg/loongarch64: Implement br/brcond ops
  tcg/loongarch64: Implement mul/mulsh/muluh/div/divu/rem/remu ops
  tcg/loongarch64: Implement add/sub ops
  tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops
  tcg/loongarch64: Implement clz/ctz ops
  tcg/loongarch64: Implement bswap{16,32,64} ops
  tcg/loongarch64: Implement deposit/extract ops
  tcg/loongarch64: Implement not/and/or/xor/nor/andc/orc ops
  ...

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


Compare: https://github.com/qemu/qemu/compare/5316e12bb2b4...6fcd6859134b



reply via email to

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