diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-22 18:41:14 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-22 18:41:14 +1000 |
commit | 36f8fc657039a8586c2d800d16771eb2b5a24da8 (patch) | |
tree | cfa7dad3ab4b70385de4bb7bbdd5fa785a15d2c5 /recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch | |
parent | 0691d6f5b89d24985655960d7f22baf896896324 (diff) | |
download | meta-xilinx-36f8fc657039a8586c2d800d16771eb2b5a24da8.tar.gz |
qemu_zynqmp: Update SRCREV and Patches
* Update SRCREV to point to newest master
* Update patches based on patches that are on qemu-devel at v4
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch')
-rw-r--r-- | recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch b/recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch deleted file mode 100644 index 0af560de..00000000 --- a/recipes-devtools/qemu/qemu-zynqmp-mainline/0013-arm-xilinx-zynq-mp-generic-Add-external-RAM.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From 0b155ff9a1e19f2b4ed4324e822285d3a667f02a Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Crosthwaite <peter.crosthwaite@xilinx.com> | ||
3 | Date: Mon, 23 Feb 2015 15:04:53 -0800 | ||
4 | Subject: [PATCH 13/15] arm: xilinx-zynq-mp-generic: Add external RAM | ||
5 | |||
6 | Zynq MPSoC supports external DDR RAM. Add a RAM at 0 to the model. | ||
7 | |||
8 | Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> | ||
9 | --- | ||
10 | hw/arm/xlnx-zynq-mp-generic.c | 7 +++++++ | ||
11 | 1 file changed, 7 insertions(+) | ||
12 | |||
13 | diff --git a/hw/arm/xlnx-zynq-mp-generic.c b/hw/arm/xlnx-zynq-mp-generic.c | ||
14 | index ff69b07..7394e82 100644 | ||
15 | --- a/hw/arm/xlnx-zynq-mp-generic.c | ||
16 | +++ b/hw/arm/xlnx-zynq-mp-generic.c | ||
17 | @@ -18,9 +18,11 @@ | ||
18 | #include "hw/arm/xlnx-zynq-mp.h" | ||
19 | #include "hw/boards.h" | ||
20 | #include "qemu/error-report.h" | ||
21 | +#include "exec/address-spaces.h" | ||
22 | |||
23 | typedef struct XlnxZynqMPGeneric { | ||
24 | XlnxZynqMPState soc; | ||
25 | + MemoryRegion ddr_ram; | ||
26 | } XlnxZynqMPGeneric; | ||
27 | |||
28 | static void xlnx_zynq_mp_generic_init(MachineState *machine) | ||
29 | @@ -36,6 +38,11 @@ static void xlnx_zynq_mp_generic_init(MachineState *machine) | ||
30 | error_report("%s", error_get_pretty(err)); | ||
31 | exit(1); | ||
32 | } | ||
33 | + | ||
34 | + memory_region_init_ram(&s->ddr_ram, NULL, "ddr-ram", machine->ram_size, | ||
35 | + &error_abort); | ||
36 | + vmstate_register_ram_global(&s->ddr_ram); | ||
37 | + memory_region_add_subregion(get_system_memory(), 0, &s->ddr_ram); | ||
38 | } | ||
39 | |||
40 | static QEMUMachine xlnx_zynq_mp_generic_machine = { | ||
41 | -- | ||
42 | 2.1.1 | ||
43 | |||