qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Richard Henderson <rth@twiddle.net>
Cc: Alexander Graf <agraf@suse.de>, Cornelia Huck <cohuck@redhat.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>
Subject: [Qemu-devel] [PATCH 5/5] target/s390x: Add remaining switches to compile with --disable-tcg
Date: Wed, 19 Jul 2017 14:54:10 +0200	[thread overview]
Message-ID: <1500468850-15571-6-git-send-email-thuth@redhat.com> (raw)
In-Reply-To: <1500468850-15571-1-git-send-email-thuth@redhat.com>

Adding some CONFIG_TCG tests to be finally able to compile QEMU
on s390x also without TCG.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 target/s390x/Makefile.objs | 6 +++---
 target/s390x/cpu.c         | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/target/s390x/Makefile.objs b/target/s390x/Makefile.objs
index cc2b4c9..f42cd1f 100644
--- a/target/s390x/Makefile.objs
+++ b/target/s390x/Makefile.objs
@@ -1,6 +1,6 @@
-obj-y += translate.o helper.o cpu.o interrupt.o
-obj-y += int_helper.o fpu_helper.o cc_helper.o mem_helper.o misc_helper.o
-obj-y += gdbstub.o cpu_models.o cpu_features.o excp_helper.o
+obj-y += cpu.o cpu_models.o cpu_features.o gdbstub.o interrupt.o helper.o
+obj-$(CONFIG_TCG) += translate.o cc_helper.o excp_helper.o fpu_helper.o
+obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o
 obj-$(CONFIG_SOFTMMU) += machine.o ioinst.o arch_dump.o mmu_helper.o diag.o
 obj-$(CONFIG_KVM) += kvm.o
 
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index accef03..489bc25 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -417,7 +417,9 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
     cc->reset = s390_cpu_full_reset;
     cc->class_by_name = s390_cpu_class_by_name,
     cc->has_work = s390_cpu_has_work;
+#ifdef CONFIG_TCG
     cc->do_interrupt = s390_cpu_do_interrupt;
+#endif
     cc->dump_state = s390_cpu_dump_state;
     cc->set_pc = s390_cpu_set_pc;
     cc->gdb_read_register = s390_cpu_gdb_read_register;
@@ -428,10 +430,12 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
     cc->get_phys_page_debug = s390_cpu_get_phys_page_debug;
     cc->vmsd = &vmstate_s390_cpu;
     cc->write_elf64_note = s390_cpu_write_elf64_note;
+#ifdef CONFIG_TCG
     cc->cpu_exec_interrupt = s390_cpu_exec_interrupt;
     cc->debug_excp_handler = s390x_cpu_debug_excp_handler;
     cc->do_unaligned_access = s390x_cpu_do_unaligned_access;
 #endif
+#endif
     cc->disas_set_info = s390_cpu_disas_set_info;
 
     cc->gdb_num_core_regs = S390_NUM_CORE_REGS;
-- 
1.8.3.1

  parent reply	other threads:[~2017-07-19 12:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19 12:54 [Qemu-devel] [PATCH 0/5] target/s390x: Fix broken build with --disable-tcg Thomas Huth
2017-07-19 12:54 ` [Qemu-devel] [PATCH 1/5] target/s390x: Move program_interrupt() & trigger_pgm_exception() to interrupt.c Thomas Huth
2017-07-19 18:05   ` Richard Henderson
2017-07-19 12:54 ` [Qemu-devel] [PATCH 2/5] target/s390x: Move s390_cpu_dump_state() to helper.c Thomas Huth
2017-07-19 18:06   ` Richard Henderson
2017-07-19 12:54 ` [Qemu-devel] [PATCH 3/5] target/s390x: Move diag helpers to a separate file Thomas Huth
2017-07-19 18:08   ` Richard Henderson
2017-07-19 12:54 ` [Qemu-devel] [PATCH 4/5] target/s390x: Move exception-related functions to a new excp_helper.c file Thomas Huth
2017-07-19 18:10   ` Richard Henderson
2017-07-19 12:54 ` Thomas Huth [this message]
2017-07-19 18:13   ` [Qemu-devel] [PATCH 5/5] target/s390x: Add remaining switches to compile with --disable-tcg Richard Henderson
2017-07-21 14:05     ` Thomas Huth
2017-07-19 14:08 ` [Qemu-devel] [PATCH 0/5] target/s390x: Fix broken build " no-reply
2017-07-19 14:10 ` no-reply
2017-07-19 14:38   ` Thomas Huth

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=1500468850-15571-6-git-send-email-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).