Skip to content

Commit

Permalink
target-s390x: split FPU ops
Browse files Browse the repository at this point in the history
Move floating point instructions to fpu_helper.c.

While exporting some condition code helpers,
avoid duplicate identifier conflict with translate.c.

Remove unused set_cc_nz_f64() in translate.c.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
blueswirl authored and mdroth committed Oct 9, 2012
1 parent b05900a commit 4bae8a0
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 810 deletions.
2 changes: 2 additions & 0 deletions target-s390x/Makefile.objs
@@ -1,5 +1,7 @@
obj-y += translate.o op_helper.o helper.o cpu.o interrupt.o
obj-y += fpu_helper.o
obj-$(CONFIG_SOFTMMU) += machine.o
obj-$(CONFIG_KVM) += kvm.o

$(obj)/op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
$(obj)/fpu_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
6 changes: 6 additions & 0 deletions target-s390x/cpu.h
Expand Up @@ -999,4 +999,10 @@ static inline void cpu_pc_from_tb(CPUS390XState *env, TranslationBlock* tb)
env->psw.addr = tb->pc;
}

/* fpu_helper.c */
uint32_t set_cc_f32(float32 v1, float32 v2);
uint32_t set_cc_f64(float64 v1, float64 v2);
uint32_t set_cc_nz_f32(float32 v);
uint32_t set_cc_nz_f64(float64 v);

#endif

0 comments on commit 4bae8a0

Please sign in to comment.