Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66CA3C3ABA2 for ; Mon, 16 Sep 2024 17:58:32 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqFzW-000475-6W; Mon, 16 Sep 2024 13:58:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqFzO-0003x9-UZ for qemu-riscv@nongnu.org; Mon, 16 Sep 2024 13:58:20 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqFzM-0005iq-7K for qemu-riscv@nongnu.org; Mon, 16 Sep 2024 13:58:18 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-718e56d7469so2699378b3a.0 for ; Mon, 16 Sep 2024 10:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1726509494; x=1727114294; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=U+ZPDeUbgcig5LmOL9oFi6iQlTYoCgou2pgDu6Rm/tY=; b=ZEo1fl5VH0i4MR6LArBByCyzx98DwvGS+dPNH0sxYOf4xhoVCXMotYwSTE3tti4Kt0 CHold5yjSTcybBAzcTgUkAEU/0tBDiCUhlUxsr4y/UZ71j6PHE0fbGCZVAYOZNeLmOWZ ZgbBatmHFyeXzdI8DIoY4cOlvDPuyJU8OsnfHvbVmJmlLf0X9B4fH32U+l3tYpXhk8VA w2FZfYBUvVmRWj9wJmTJwS+N/FVrrfMZtFzUVkVNxVoWCz175SHMamGooAvQ3lVSRW/5 3nWotgLBovziq9JIVHZJkoSQy2wFqIAo3my0x/+h7lQ5rVasmjyDAu99ljUmm0PhjKge 213g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726509494; x=1727114294; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U+ZPDeUbgcig5LmOL9oFi6iQlTYoCgou2pgDu6Rm/tY=; b=dyBcDhPASL6Qw+HftbHXl1wi/5gZGR/VO6NMTz1j8LYHyYdZQucmo+dNtpMKuILxnj v/ly0WSwqK/6prpZO7StwSwm6bhDRf9dEAOPDQhSTzR2RvbBC8gv4US9JWz8j86IvKEZ YcE1ISip33R/egV10LU14jPDZjnldc8zaSjPHgE9Tl1DqTSEFf8Xx75jxl9eXv7MNPtX fdfeS4LA9lmYSEbO2imh7vfzOyNf8dRsoY+rSTSWrky43tjuYQ/AON4bYHt5bInbtau5 IImNFhgiC8Ia65EoFkO1bN7KGpmucbzdN15rjJZ2XJLWy5Bgppt/gPIkFbMwTVwYPOAp vJLA== X-Forwarded-Encrypted: i=1; AJvYcCUDwNovjHBU/2C3B6CVgELEmQQYnypXfLhs2Ox6/VCh4EIVf7HuERzIM96gN8N0x7ZF2ZXu8v/BzvAn@nongnu.org X-Gm-Message-State: AOJu0YyzC7vxltX87qokkzBpIb+3htGFDtF1AMQhiePVvlZFvWDsPOAh C9MgxvsSsJa83oT+SWw40eougyDEhVttlGkRGL1KQ9+T5l9GsY6pBXrRq9+awZA= X-Google-Smtp-Source: AGHT+IHI/Goph/kaHS7IP6EaeLjUPthuru89bRXln8dPJ+/h3jmozRl+k+HuJJ1WxJDK90UUnD3Z/w== X-Received: by 2002:a05:6a00:3e15:b0:717:88eb:824d with SMTP id d2e1a72fcca58-71936a49609mr20641832b3a.7.1726509494278; Mon, 16 Sep 2024 10:58:14 -0700 (PDT) Received: from [192.168.68.110] (201-68-240-33.dsl.telesp.net.br. [201.68.240.33]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944a973edsm3964807b3a.2.2024.09.16.10.58.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Sep 2024 10:58:13 -0700 (PDT) Message-ID: Date: Mon, 16 Sep 2024 14:58:10 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 00/17] bsd-user: Comprehensive RISCV Support To: Ajeet Singh , qemu-devel@nongnu.org Cc: Alistair Francis , Mark Corbin , qemu-riscv@nongnu.org, Warner Losh , Ajeet Singh References: <20240916155119.14610-1-itachis@FreeBSD.org> Content-Language: en-US From: Daniel Henrique Barboza In-Reply-To: <20240916155119.14610-1-itachis@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=dbarboza@ventanamicro.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 9/16/24 12:51 PM, Ajeet Singh wrote: > Key Changes Compared to Version 6: > Included "signal-common.h" in target_arch_cpu.h Thanks. This version is successfully compiling in a FreeBSD x86 host. Daniel > > Mark Corbin (15): > bsd-user: Implement RISC-V CPU initialization and main loop > bsd-user: Add RISC-V CPU execution loop and syscall handling > bsd-user: Implement RISC-V CPU register cloning and reset functions > bsd-user: Implement RISC-V TLS register setup > bsd-user: Add RISC-V ELF definitions and hardware capability detection > bsd-user: Define RISC-V register structures and register copying > bsd-user: Add RISC-V signal trampoline setup function > bsd-user: Implement RISC-V sysarch system call emulation > bsd-user: Add RISC-V thread setup and initialization support > bsd-user: Define RISC-V VM parameters and helper functions > bsd-user: Define RISC-V system call structures and constants > bsd-user: Define RISC-V signal handling structures and constants > bsd-user: Implement RISC-V signal trampoline setup functions > bsd-user: Implement 'get_mcontext' for RISC-V > bsd-user: Implement set_mcontext and get_ucontext_sigreturn for RISCV > > Warner Losh (2): > bsd-user: Add generic RISC-V64 target definitions > bsd-user: Add RISC-V 64-bit Target Configuration and Debug XML Files > > bsd-user/riscv/signal.c | 170 ++++++++++++++++++++++++++ > bsd-user/riscv/target.h | 20 +++ > bsd-user/riscv/target_arch.h | 27 ++++ > bsd-user/riscv/target_arch_cpu.c | 29 +++++ > bsd-user/riscv/target_arch_cpu.h | 148 ++++++++++++++++++++++ > bsd-user/riscv/target_arch_elf.h | 42 +++++++ > bsd-user/riscv/target_arch_reg.h | 88 +++++++++++++ > bsd-user/riscv/target_arch_signal.h | 75 ++++++++++++ > bsd-user/riscv/target_arch_sigtramp.h | 41 +++++++ > bsd-user/riscv/target_arch_sysarch.h | 41 +++++++ > bsd-user/riscv/target_arch_thread.h | 47 +++++++ > bsd-user/riscv/target_arch_vmparam.h | 53 ++++++++ > bsd-user/riscv/target_syscall.h | 38 ++++++ > configs/targets/riscv64-bsd-user.mak | 4 + > 14 files changed, 823 insertions(+) > create mode 100644 bsd-user/riscv/signal.c > create mode 100644 bsd-user/riscv/target.h > create mode 100644 bsd-user/riscv/target_arch.h > create mode 100644 bsd-user/riscv/target_arch_cpu.c > create mode 100644 bsd-user/riscv/target_arch_cpu.h > create mode 100644 bsd-user/riscv/target_arch_elf.h > create mode 100644 bsd-user/riscv/target_arch_reg.h > create mode 100644 bsd-user/riscv/target_arch_signal.h > create mode 100644 bsd-user/riscv/target_arch_sigtramp.h > create mode 100644 bsd-user/riscv/target_arch_sysarch.h > create mode 100644 bsd-user/riscv/target_arch_thread.h > create mode 100644 bsd-user/riscv/target_arch_vmparam.h > create mode 100644 bsd-user/riscv/target_syscall.h > create mode 100644 configs/targets/riscv64-bsd-user.mak >