All of lore.kernel.org
 help / color / mirror / Atom feed
From: Djordje Todorovic <Djordje.Todorovic@htecgroup.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org>,
	"cfu@mips.com" <cfu@mips.com>
Subject: Re: [PATCH v2 2/9] target/riscv: Add cpu_set_exception_base
Date: Wed, 18 Jun 2025 08:48:23 +0000	[thread overview]
Message-ID: <5c6a4e25-e1e0-4a46-9f05-e0140cc5bf7d@htecgroup.com> (raw)
In-Reply-To: <fb1aff3f-dd5a-48d0-a722-1eb4266dcde2@linaro.org>


On 10. 6. 25. 09:43, Philippe Mathieu-Daudé wrote:
> CAUTION: This email originated from outside of the organization. Do 
> not click links or open attachments unless you recognize the sender 
> and know the content is safe.
>
>
> On 2/6/25 15:12, Djordje Todorovic wrote:
>> Add a new function, so we can change reset vector from platforms.
>>
>> Signed-off-by: Chao-ying Fu <cfu@mips.com>
>> Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
>> ---
>>   target/riscv/cpu.h       | 2 ++
>>   target/riscv/translate.c | 8 ++++++++
>>   2 files changed, 10 insertions(+)
>>
>> diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
>> index 229ade9ed9..c0e048a66d 100644
>> --- a/target/riscv/cpu.h
>> +++ b/target/riscv/cpu.h
>> @@ -656,6 +656,8 @@ G_NORETURN void 
>> riscv_raise_exception(CPURISCVState *env,
>>   target_ulong riscv_cpu_get_fflags(CPURISCVState *env);
>>   void riscv_cpu_set_fflags(CPURISCVState *env, target_ulong);
>>
> > +void cpu_set_exception_base(int vp_index, target_ulong address);
>
> If we need that, that'd be declared as:
>
> #ifndef CONFIG_USER_ONLY
> void riscv_cpu_set_exception_base(int vp_index, target_ulong address);
> #endif
>
We want to be able to change "resetvec" during runtime, so we do need

this. Sure, I will do it that way in v3.

Thanks!

  reply	other threads:[~2025-06-18  8:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-02 13:12 [PATCH v2 0/9] riscv: Add support for MIPS P8700 CPU Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 1/9] hw/intc: Allow gaps in hartids for aclint and aplic Djordje Todorovic
2025-06-10  7:34   ` Philippe Mathieu-Daudé
2025-06-18  8:43     ` Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 2/9] target/riscv: Add cpu_set_exception_base Djordje Todorovic
2025-06-10  7:43   ` Philippe Mathieu-Daudé
2025-06-18  8:48     ` Djordje Todorovic [this message]
2025-06-10 11:29   ` Alistair Francis
2025-06-02 13:12 ` [PATCH v2 4/9] target/riscv: Add MIPS P8700 CSRs Djordje Todorovic
2025-06-10  7:41   ` Philippe Mathieu-Daudé
2025-06-10 11:36     ` Alistair Francis
2025-06-02 13:12 ` [PATCH v2 3/9] target/riscv: Add MIPS P8700 CPU Djordje Todorovic
2025-06-10  7:38   ` Philippe Mathieu-Daudé
2025-06-18  8:54     ` Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 5/9] target/riscv: Add mips.ccmov instruction Djordje Todorovic
2025-06-10 11:39   ` Alistair Francis
2025-06-18  8:56     ` Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 6/9] target/riscv: Add mips.pref instruction Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 7/9] target/riscv: Add Xmipslsp instructions Djordje Todorovic
2025-06-02 13:12 ` [PATCH v2 8/9] configs/devices: Add MIPS Boston-aia board model to RISC-V Djordje Todorovic
2025-06-10  7:46   ` Philippe Mathieu-Daudé
2025-06-02 13:12 ` [PATCH v2 9/9] hw/riscv: Add a network device e1000e to the boston-aia Djordje Todorovic
2025-06-10 11:41   ` Alistair Francis
2025-06-10 11:42 ` [PATCH v2 0/9] riscv: Add support for MIPS P8700 CPU Alistair Francis
2025-06-18  7:55   ` Djordje Todorovic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c6a4e25-e1e0-4a46-9f05-e0140cc5bf7d@htecgroup.com \
    --to=djordje.todorovic@htecgroup.com \
    --cc=cfu@mips.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.