mips: allow compiling out CONFIG_MIPS_ITU
PATCH 1/1 mips: allow compiling out CONFIG_MIPS_ITU
itu_reconfigure() is referenced from TCG, provide a stub if needed.
--- hw/mips/mips_itu-stub.c | 26 ++++++++++++++++++++++++++ hw/mips/meson.build | 1 + 2 files changed, 27 insertions(+) create mode 100644 hw/mips/mips_itu-stub.c
hw/mips/mips_itu-stub.c new file +26 -0
@@ -0,0 +1,26 @@ +/* +* Inter-Thread Communication Unit emulation. +* +* Copyright (c) 2016 Imagination Technologies +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2.1 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#include "qemu/osdep.h" +#include "hw/misc/mips_itu.h" + +void itc_reconfigure (MIPSITUState *tag) +{ +abort (); +}
hw/mips/meson.build +1 -0
@@ -4,6 +4,7 @@ mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c')) mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c')) mips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c')) mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c')) +mips_ss.add(when: 'CONFIG_MIPS_ITU', if_false: files('mips_itu-stub.c')) if 'CONFIG_TCG' in config_all_accel mips_ss.add(when: 'CONFIG_JAZZ', if_true: files('jazz.c'))
Signature · 1 line
2.43.0
Hi Paolo,
Quoted 1 line · Paolo Bonzini
itu_reconfigure()is referenced from TCG, provide a stub if needed.
s/itu_reconfigure/itc_reconfigure/
What are you trying to achieve?
Quoted 51 lines
Signed-off-by Paolo Bonzini <[email protected]>--- hw/mips/mips_itu-stub.c | 26 ++++++++++++++++++++++++++ hw/mips/meson.build | 1 + 2 files changed, 27 insertions(+)create mode 100644
hw/mips/mips_itu-stub.chw/mips/mips_itu-stub.c new file +26
-0@@ -0,0 +1,26 @@ +/* +* Inter-Thread Communication Unit emulation. +* +* Copyright (c) 2016 Imagination Technologies +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2.1 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#include "qemu/osdep.h" +#include "hw/misc/mips_itu.h" + +void itc_reconfigure (MIPSITUState *tag) +{ +abort (); +}hw/mips/meson.build +1
-0@@ -4,6 +4,7 @@ mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c')) mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c')) mips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c')) mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c')) +mips_ss.add(when: 'CONFIG_MIPS_ITU', if_false: files('mips_itu-stub.c')) if 'CONFIG_TCG' in config_all_accel mips_ss.add(when: 'CONFIG_JAZZ', if_true: files('jazz.c'))
Quoted 9 lines · Philippe Mathieu-Daudé
Hi Paolo,
Quoted 1 line · Paolo Bonzini
itu_reconfigure()is referenced from TCG, provide a stub if needed.s/itu_reconfigure/itc_reconfigure/
What are you trying to achieve?
I'm trying to build all MIPS boards one by one (to clean up configs/devices/mips*).
Paolo
Il lun 29 gen 2024, 14:31 Paolo Bonzini <[email protected]> ha scritto:
Quoted 6 lines
Quoted 4 lines · Philippe Mathieu-Daudé
Hi Paolo,
On 29/1/24 13:13, Paolo Bonzini wrote:
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
itu_reconfigure()is referenced from TCG, provide a stub if needed.s/itu_reconfigure/itc_reconfigure/
What are you trying to achieve?
I'm trying to build all MIPS boards one by one (to clean up configs/devices/mips*).
Is this okay? It's not *required* in order to clean up configs/devices/mips*, but it's still a bug.
Paolo
Quoted 2 lines
Paolo