[all-commits] [llvm/llvm-project] b0272d: [libc] Fix set_thread_ptr call in rv32 start up code

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Wed Aug 30 07:31:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0272d8ec34992b8a47683a2cff7387919343e21
      https://github.com/llvm/llvm-project/commit/b0272d8ec34992b8a47683a2cff7387919343e21
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M libc/startup/linux/riscv64/start.cpp

  Log Message:
  -----------
  [libc] Fix set_thread_ptr call in rv32 start up code

This patch changes the instruction in set_thread_ptr from ld to mv,
as rv32 doesn't have the ld instruction, and mv is supported by both
rv32 and rv64.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D159110




More information about the All-commits mailing list