diff mbox series

[for-3.2,v7,2/6] hw/riscv/virt: Adjust memory layout spacing

Message ID 005f96f5dbffd4c2e370f8b0ee102d3b477e19b0.1542819633.git.alistair.francis@wdc.com
State New
Headers show
Series Connect a PCIe host and graphics support to RISC-V | expand

Commit Message

Alistair Francis Nov. 21, 2018, 5:02 p.m. UTC
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 hw/riscv/virt.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Comments

Logan Gunthorpe Nov. 21, 2018, 5:59 p.m. UTC | #1
On 2018-11-21 10:02 a.m., Alistair Francis wrote:
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

Reviewed-by: Logan Gunthorpe <logang@deltatee.com>

> ---
>  hw/riscv/virt.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
> index 2b38f89070..6b6fa39aaa 100644
> --- a/hw/riscv/virt.c
> +++ b/hw/riscv/virt.c
> @@ -47,14 +47,14 @@ static const struct MemmapEntry {
>      hwaddr base;
>      hwaddr size;
>  } virt_memmap[] = {
> -    [VIRT_DEBUG] =    {        0x0,      0x100 },
> -    [VIRT_MROM] =     {     0x1000,    0x11000 },
> -    [VIRT_TEST] =     {   0x100000,     0x1000 },
> -    [VIRT_CLINT] =    {  0x2000000,    0x10000 },
> -    [VIRT_PLIC] =     {  0xc000000,  0x4000000 },
> -    [VIRT_UART0] =    { 0x10000000,      0x100 },
> -    [VIRT_VIRTIO] =   { 0x10001000,     0x1000 },
> -    [VIRT_DRAM] =     { 0x80000000,        0x0 },
> +    [VIRT_DEBUG] =       {        0x0,         0x100 },
> +    [VIRT_MROM] =        {     0x1000,       0x11000 },
> +    [VIRT_TEST] =        {   0x100000,        0x1000 },
> +    [VIRT_CLINT] =       {  0x2000000,       0x10000 },
> +    [VIRT_PLIC] =        {  0xc000000,     0x4000000 },
> +    [VIRT_UART0] =       { 0x10000000,         0x100 },
> +    [VIRT_VIRTIO] =      { 0x10001000,        0x1000 },
> +    [VIRT_DRAM] =        { 0x80000000,           0x0 },
>  };
>  
>  static uint64_t load_kernel(const char *kernel_filename)
>
diff mbox series

Patch

diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 2b38f89070..6b6fa39aaa 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -47,14 +47,14 @@  static const struct MemmapEntry {
     hwaddr base;
     hwaddr size;
 } virt_memmap[] = {
-    [VIRT_DEBUG] =    {        0x0,      0x100 },
-    [VIRT_MROM] =     {     0x1000,    0x11000 },
-    [VIRT_TEST] =     {   0x100000,     0x1000 },
-    [VIRT_CLINT] =    {  0x2000000,    0x10000 },
-    [VIRT_PLIC] =     {  0xc000000,  0x4000000 },
-    [VIRT_UART0] =    { 0x10000000,      0x100 },
-    [VIRT_VIRTIO] =   { 0x10001000,     0x1000 },
-    [VIRT_DRAM] =     { 0x80000000,        0x0 },
+    [VIRT_DEBUG] =       {        0x0,         0x100 },
+    [VIRT_MROM] =        {     0x1000,       0x11000 },
+    [VIRT_TEST] =        {   0x100000,        0x1000 },
+    [VIRT_CLINT] =       {  0x2000000,       0x10000 },
+    [VIRT_PLIC] =        {  0xc000000,     0x4000000 },
+    [VIRT_UART0] =       { 0x10000000,         0x100 },
+    [VIRT_VIRTIO] =      { 0x10001000,        0x1000 },
+    [VIRT_DRAM] =        { 0x80000000,           0x0 },
 };
 
 static uint64_t load_kernel(const char *kernel_filename)