]> git.proxmox.com Git - mirror_qemu.git/commitdiff
user: Remove cpu_get_pic_interrupt() stubs
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Sep 2021 16:54:34 +0000 (18:54 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Sep 2021 19:00:21 +0000 (12:00 -0700)
cpu_get_pic_interrupt() is now unreachable from user-mode,
delete the unnecessary stubs.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210911165434.531552-25-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/i386/target_arch_cpu.c
bsd-user/x86_64/target_arch_cpu.c
linux-user/main.c
target/i386/cpu.h

index 71998e5ba56c7f6b7a4c67ffc82e6b71ecb3d5c1..d349e4529977174a717308135a467ebba7cde405 100644 (file)
@@ -33,11 +33,6 @@ uint64_t cpu_get_tsc(CPUX86State *env)
     return cpu_get_host_ticks();
 }
 
-int cpu_get_pic_interrupt(CPUX86State *env)
-{
-    return -1;
-}
-
 void bsd_i386_write_dt(void *ptr, unsigned long addr, unsigned long limit,
                      int flags)
 {
index db822e54c662801a1327ca1a4226cd5e8ee0647e..be7bd10720044567f8915ee27e99fe33937eaaaf 100644 (file)
@@ -33,11 +33,6 @@ uint64_t cpu_get_tsc(CPUX86State *env)
     return cpu_get_host_ticks();
 }
 
-int cpu_get_pic_interrupt(CPUX86State *env)
-{
-    return -1;
-}
-
 void bsd_x86_64_write_dt(void *ptr, unsigned long addr,
         unsigned long limit, int flags)
 {
index a6094563b6bf6fec3eb38a5265a590b1205a56fb..45bde4598d5ab3f848bfa05f3d2650914afc2be6 100644 (file)
@@ -120,13 +120,6 @@ const char *qemu_uname_release;
    by remapping the process stack directly at the right place */
 unsigned long guest_stack_size = 8 * 1024 * 1024UL;
 
-#if defined(TARGET_I386)
-int cpu_get_pic_interrupt(CPUX86State *env)
-{
-    return -1;
-}
-#endif
-
 /***********************************************************/
 /* Helper routines for implementing atomic operations.  */
 
index 1a36c53c1885ff038927e83718731b9ff5b2b8d2..7dd664791a797335d79416f3960c523088021054 100644 (file)
@@ -1836,9 +1836,9 @@ int x86_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);
 void x86_cpu_list(void);
 int cpu_x86_support_mca_broadcast(CPUX86State *env);
 
+#ifndef CONFIG_USER_ONLY
 int cpu_get_pic_interrupt(CPUX86State *s);
 
-#ifndef CONFIG_USER_ONLY
 /* MSDOS compatibility mode FPU exception support */
 void x86_register_ferr_irq(qemu_irq irq);
 void fpu_check_raise_ferr_irq(CPUX86State *s);