From: Aditya Gupta <adityag@linux.ibm.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Cédric Le Goater" <clg@redhat.com>,
qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Frédéric Barrat" <fbarrat@linux.ibm.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Nicholas Piggin" <npiggin@gmail.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Daniel Henrique Barboza" <danielhb413@gmail.com>,
qemu-ppc@nongnu.org, "Ani Sinha" <anisinha@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
qemu-stable <qemu-stable@nongnu.org>,
"Harsh Prateek Bora" <harshpb@linux.ibm.com>
Subject: Re: [PATCH 3/3] hw/ppc: Add stub for pnv_chip_find_core()
Date: Tue, 22 Jul 2025 23:34:22 +0530 [thread overview]
Message-ID: <7a537212-3634-4fe4-b574-b9287c75cb2c@linux.ibm.com> (raw)
In-Reply-To: <ba766eae-e8e0-436a-ad30-625744b872e4@linaro.org>
Hi Cédric and Philippe,
On 26/05/25 17:21, Philippe Mathieu-Daudé wrote:
> On 26/5/25 13:48, Cédric Le Goater wrote:
>> On 5/26/25 13:23, Philippe Mathieu-Daudé wrote:
>>> Since commit 9808ce6d5cb, building QEMU configured with
>>> '--without-default-devices' fails:
>>>
>>> Undefined symbols for architecture arm64:
>>> "_pnv_chip_find_core", referenced from:
>>> _helper_load_sprd in target_ppc_misc_helper.c.o
>>> _helper_store_sprd in target_ppc_misc_helper.c.o
>>> ld: symbol(s) not found for architecture arm64
>>> clang: error: linker command failed with exit code 1
>>> > Fix by adding a stub when CONFIG_POWERNV is not available.
>>
>> The fix would be to add an abstract handler to implement SPRD accesses
>> on the PowerNV machine.
Is this what you meant by an abstract handler ?
https://github.com/adi-g15-ibm/qemu/commit/0abac37032a5ef66d64a649ce04f24876bf9007d
The thing done, is just to introduce a function pointer in
'PowerPCCPUClass',
namely 'handle_sprd_store' and 'handle_sprd_load'
These will be set in the PNV chip realize path, so now the SPRD code in
target/ppc, will only call this for PowerNV.
Separated the powernv specific code, so target/ppc code doesn't depend
on pnv calls now.
Not well tested, will try somethings.
Thanks,
Aditya Gupta
>
> I don't know what "SPRD" is so I'll let someone more familiar with
> this area do the proper cleanup.
>
> Regards,
>
> Phil.
>
>>
>> Thanks,
>>
>> C.
>
>
next prev parent reply other threads:[~2025-07-22 18:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 11:23 [PATCH 0/3] hw/ppc: Fix --without-default-devices build Philippe Mathieu-Daudé
2025-05-26 11:23 ` [PATCH 1/3] hw/acpi: Build IPMI stubs when ACPI is disabled Philippe Mathieu-Daudé
2025-05-26 11:55 ` Thomas Huth
2025-05-26 11:57 ` Thomas Huth
2025-05-26 11:23 ` [PATCH 2/3] hw/ppc: PowerNV machines expose a I2C bus Philippe Mathieu-Daudé
2025-05-26 11:34 ` Thomas Huth
2025-05-26 11:48 ` Cédric Le Goater
2025-05-26 11:23 ` [PATCH 3/3] hw/ppc: Add stub for pnv_chip_find_core() Philippe Mathieu-Daudé
2025-05-26 11:48 ` Cédric Le Goater
2025-05-26 11:51 ` Philippe Mathieu-Daudé
2025-07-13 11:18 ` Michael Tokarev
2025-08-10 8:00 ` Michael Tokarev
2025-08-20 6:52 ` Aditya Gupta
2025-07-22 18:04 ` Aditya Gupta [this message]
2025-08-11 8:40 ` Philippe Mathieu-Daudé
2025-08-20 12:30 ` Aditya Gupta
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=7a537212-3634-4fe4-b574-b9287c75cb2c@linux.ibm.com \
--to=adityag@linux.ibm.com \
--cc=anisinha@redhat.com \
--cc=clg@redhat.com \
--cc=danielhb413@gmail.com \
--cc=fbarrat@linux.ibm.com \
--cc=harshpb@linux.ibm.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=npiggin@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=thuth@redhat.com \
/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.