Skip to content

Commit 0df9781

Browse files
committed
target/s390x: Restrict I/O handler installers to system emulation
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 52df41e commit 0df9781

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

target/s390x/s390x-internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ void cpu_inject_stop(S390CPU *cpu);
356356

357357

358358
/* ioinst.c */
359+
#ifndef CONFIG_USER_ONLY
359360
void ioinst_handle_xsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
360361
void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
361362
void ioinst_handle_hsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
@@ -373,6 +374,7 @@ void ioinst_handle_schm(S390CPU *cpu, uint64_t reg1, uint64_t reg2,
373374
void ioinst_handle_rsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
374375
void ioinst_handle_rchp(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
375376
void ioinst_handle_sal(S390CPU *cpu, uint64_t reg1, uintptr_t ra);
377+
#endif /* CONFIG_USER_ONLY */
376378

377379

378380
/* mem_helper.c */

0 commit comments

Comments
 (0)