ppc patch queue 2014-06-04
[Qemu-devel] [PULL 071/118] PPC: Add u-boot firmware for e500
In reply to Alexander GrafThis adds a special build of u-boot tailored for the e500 platforms we emulate. It is based on the current version of upstream u-boot which contains all the code necessary to drive our QEMU provided machines.
--- .gitmodules | 3 +++ pc-bios/README | 5 +++++ pc-bios/u-boot.e500 | Bin 0 -> 330260 bytes roms/Makefile | 9 +++++++++ roms/u-boot | 1 + 5 files changed, 18 insertions(+) create mode 100755 pc-bios/u-boot.e500 create mode 160000 roms/u-boot
.gitmodules +3 -0
@@ -28,3 +28,6 @@ [submodule "dtc"] path = dtc url = git://git.qemu-project.org/dtc.git +[submodule "roms/u-boot"] + path = roms/u-boot + url = git://git.qemu-project.org/u-boot.git
pc-bios/README +5 -0
@@ -41,3 +41,8 @@ - The sources for the Alpha palcode image is available from: git://github.com/rth7680/qemu-palcode.git + +- The u-boot binary for e500 comes from the upstream denx u-boot project where + it was compiled using the qemu-ppce500 target. + A git mirror is available at: git://git.qemu-project.org/u-boot.git + The hash used to compile the current version is: 2072e72
pc-bios/u-boot.e500 new file binary +0 -0
roms/Makefile +9 -0
@@ -31,6 +31,7 @@ find-cross-gcc = $(firstword $(wildcard $(patsubst %ld,%gcc,$(call find-cross-ld find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1)))) powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64) +powerpc_cross_prefix := $(call find-cross-prefix,powerpc) x86_64_cross_prefix := $(call find-cross-prefix,x86_64) #
@@ -55,6 +56,7 @@ default: @echo " efirom -- update nic roms (bios+efi, this needs" @echo " the EfiRom utility from edk2 / tianocore)" @echo " slof -- update slof.bin" + @echo " u-boot.e500 -- update u-boot.e500" bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
@@ -132,6 +134,12 @@ slof: $(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) qemu cp SLOF/boot_rom.bin ../pc-bios/slof.bin +u-boot.e500: + $(MAKE) -C u-boot O=build.e500 qemu-ppce500_config + $(MAKE) -C u-boot CROSS_COMPILE=$(powerpc_cross_prefix) \ + O=build.e500 + $(powerpc_cross_prefix)strip u-boot/build.e500/u-boot -o \ + ../pc-bios/u-boot.e500 clean: rm -rf seabios/.config seabios/out seabios/builds
@@ -141,3 +149,4 @@ clean: rm -f sgabios/.depend $(MAKE) -C ipxe/src veryclean $(MAKE) -C SLOF clean + rm -rf u-boot/build.e500
roms/u-boot new file +1 -0
@@ -0,0 +1 @@ +Subproject commit 2072e7262965bb48d7fffb1e283101e6ed8b21a8
Signature · 1 line
1.8.1.4
[Qemu-devel] [PULL 015/118] libdecnumber: Introduce libdecnumber Code
In reply to Alexander GrafFrom: Tom Musta <[email protected]>
Add files from the libdecnumber decimal floating point library to QEMU. The libdecnumber library was originally part of GCC and contains code that is useful in emulating the PowerPC decimal floating point (DFP) instructions. This particular copy of the source comes from GCC 4.3 and is licensed at GPLv2+.
--- include/libdecnumber/dconfig.h | 52 + include/libdecnumber/decContext.h | 258 + include/libdecnumber/decDPD.h | 1215 +++++ include/libdecnumber/decNumber.h | 200 + include/libdecnumber/decNumberLocal.h | 667 +++ include/libdecnumber/dpd/decimal128.h | 101 + include/libdecnumber/dpd/decimal128Local.h | 47 + include/libdecnumber/dpd/decimal32.h | 99 + include/libdecnumber/dpd/decimal64.h | 101 + libdecnumber/decContext.c | 431 ++ libdecnumber/decNumber.c | 8122 ++++++++++++++++++++++++++++ libdecnumber/dpd/decimal128.c | 566 ++ libdecnumber/dpd/decimal128Local.h | 42 + libdecnumber/dpd/decimal32.c | 491 ++ libdecnumber/dpd/decimal64.c | 852 +++ 15 files changed, 13244 insertions(+) create mode 100644 include/libdecnumber/dconfig.h create mode 100644 include/libdecnumber/decContext.h create mode 100644 include/libdecnumber/decDPD.h create mode 100644 include/libdecnumber/decNumber.h create mode 100644 include/libdecnumber/decNumberLocal.h create mode 100644 include/libdecnumber/dpd/decimal128.h create mode 100644 include/libdecnumber/dpd/decimal128Local.h create mode 100644 include/libdecnumber/dpd/decimal32.h create mode 100644 include/libdecnumber/dpd/decimal64.h create mode 100644 libdecnumber/decContext.c create mode 100644 libdecnumber/decNumber.c create mode 100644 libdecnumber/dpd/decimal128.c create mode 100644 libdecnumber/dpd/decimal128Local.h create mode 100644 libdecnumber/dpd/decimal32.c create mode 100644 libdecnumber/dpd/decimal64.c
include/libdecnumber/dconfig.h new file +52 -0
@@ -0,0 +1,52 @@ +/* Configure decNumber for either host or target. +Copyright (C) 2008 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +In addition to the permissions in the GNU General Public License, +the Free Software Foundation gives you unlimited permission to link +the compiled version of this file into combinations with other +programs, and to distribute those combinations without any +restriction coming from the use of this file. (The General Public +License restrictions do apply in other respects; for example, they +cover modification of the file, and distribution when not linked +into a combine executable.) + +GCC 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 General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ + +#ifdef IN_LIBGCC2 + +#include "tconfig.h" +#include "coretypes.h" +#include "tm.h" + +#ifndef LIBGCC2_WORDS_BIG_ENDIAN +#define LIBGCC2_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN +#endif + +#ifndef LIBGCC2_FLOAT_WORDS_BIG_ENDIAN +#define LIBGCC2_FLOAT_WORDS_BIG_ENDIAN LIBGCC2_WORDS_BIG_ENDIAN +#endif + +#if LIBGCC2_FLOAT_WORDS_BIG_ENDIAN +#define WORDS_BIGENDIAN 1 +#endif + +#else + +#include "config.h" + +#endif
include/libdecnumber/decContext.h new file +258 -0
258 lines not on this page · raw message
include/libdecnumber/decDPD.h new file +1215 -0
1,215 lines not on this page · raw message
include/libdecnumber/decNumber.h new file +200 -0
200 lines not on this page · raw message
include/libdecnumber/decNumberLocal.h new file +667 -0
667 lines not on this page · raw message
include/libdecnumber/dpd/decimal128.h new file +101 -0
101 lines not on this page · raw message
include/libdecnumber/dpd/decimal128Local.h new file +47 -0
47 lines not on this page · raw message
include/libdecnumber/dpd/decimal32.h new file +99 -0
99 lines not on this page · raw message
include/libdecnumber/dpd/decimal64.h new file +101 -0
101 lines not on this page · raw message
libdecnumber/decContext.c new file +431 -0
260 lines not on this page · raw message
libdecnumber/decNumber.c new file +8122 -0
8,122 lines not on this page · raw message
libdecnumber/dpd/decimal128.c new file +566 -0
566 lines not on this page · raw message
libdecnumber/dpd/decimal128Local.h new file +42 -0
42 lines not on this page · raw message
libdecnumber/dpd/decimal32.c new file +491 -0
491 lines not on this page · raw message
libdecnumber/dpd/decimal64.c new file +852 -0
852 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.1.4
Part of the diff is not shown here. View the raw message.
Quoted 11 lines · Alexander Graf
Hi Peter,
This is my current patch queue for ppc. Please pull.
Alex
The following changes since commit
e00fcfeab3d452cba3d0a08991a39ab15df66424:Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140602.0' into staging (2014-06-03 14:37:43 +0100)
Quoted 8 lines
are available in the git repository at:
git://github.com/agraf/qemu.gittags/signed-ppc-for-upstreamfor you to fetch changes up to
fbe4d727461729382e651279388400b1382caac6:PPC: spapr: Expose /hypervisor node in device tree (2014-06-04 14:38:17 +0200)
Hi. I'm afraid this fails 'make check':
TEST: tests/qom-test... (pid=25249)
/ppc/qom/ref405ep: OK /ppc/qom/none: OK /ppc/qom/virtex-ml507: OK
/ppc/qom/ppce500:
Bad address
qemu: could not load firmware '(null)'
Broken pipe
FAIL
GTester: last random seed: R02S83419a7cef60f55bf4050349c6e03e1d (pid=25258)
/ppc/qom/mpc8544ds:
Bad address
qemu: could not load firmware '(null)'
Broken pipe
FAIL
GTester: last random seed: R02Sc9c3ce565772a4200caed8dc47dae1c6 (pid=25262)
/ppc/qom/bamboo: OK /ppc/qom/g3beige: OK /ppc/qom/prep: OK /ppc/qom/mac99: OK /ppc/qom/taihu: OK
FAIL: tests/qom-test
make: *** [check-qtest-ppc] Error 1
make: Leaving directory `/home/petmay01/linaro/qemu-for-merges/build/all'
thanks
-- PMM