Message ID | 20230508133745.109463-1-thuth@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | Make the core disassembler functions target-independent | expand |
On 5/8/23 14:37, Thomas Huth wrote: > Move disas.c into the target-independent source set, so that we > only have to compile this code once instead multiple times (one > time for each target). > > Marked as RFC since we have to replace the target_ulongs here > with hwaddr, and the TARGET_FMT_lx with HWADDR_FMT_plx, which is > a little bit ugly ... what's your opinion? > > Thomas Huth (2): > disas: Move softmmu specific code to separate file > disas: Move disas.c into the target-independent source set Patches 79-83 from https://patchew.org/QEMU/20230503072331.1747057-1-richard.henderson@linaro.org/ do the same thing, using uint64_t instead of hwaddr (it's not). r~
On 08/05/2023 16.04, Richard Henderson wrote: > On 5/8/23 14:37, Thomas Huth wrote: >> Move disas.c into the target-independent source set, so that we >> only have to compile this code once instead multiple times (one >> time for each target). >> >> Marked as RFC since we have to replace the target_ulongs here >> with hwaddr, and the TARGET_FMT_lx with HWADDR_FMT_plx, which is >> a little bit ugly ... what's your opinion? >> >> Thomas Huth (2): >> disas: Move softmmu specific code to separate file >> disas: Move disas.c into the target-independent source set > > Patches 79-83 from > > https://patchew.org/QEMU/20230503072331.1747057-1-richard.henderson@linaro.org/ > > do the same thing, using uint64_t instead of hwaddr (it's not). Ah, great, so I can scratch this from my list :-) But FYI, you missed to update bsd-user/elfload.c in the patch that updates linux-user/elfload.c. Thomas
On 5/8/23 15:04, Richard Henderson wrote: > On 5/8/23 14:37, Thomas Huth wrote: >> Move disas.c into the target-independent source set, so that we >> only have to compile this code once instead multiple times (one >> time for each target). >> >> Marked as RFC since we have to replace the target_ulongs here >> with hwaddr, and the TARGET_FMT_lx with HWADDR_FMT_plx, which is >> a little bit ugly ... what's your opinion? >> >> Thomas Huth (2): >> disas: Move softmmu specific code to separate file >> disas: Move disas.c into the target-independent source set > > Patches 79-83 from > > https://patchew.org/QEMU/20230503072331.1747057-1-richard.henderson@linaro.org/ > > do the same thing, using uint64_t instead of hwaddr (it's not). I've just realized that only the choice of hwaddr/uint64_t overlap; I failed to take this all of the way to building disas once. I will integrate our two sets. r~