]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-microblaze: Allow address sizes between 32 and 64 bits
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 17 Apr 2018 16:17:40 +0000 (18:17 +0200)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 29 May 2018 07:35:14 +0000 (09:35 +0200)
Allow address sizes between 32 and 64 bits.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/microblaze/cpu.c

index 71fc8d09feb31c24b8ff72cb6f07a93a00c00a60..9b546a2c18e74303dbdbea5e26ae050a389b3177 100644 (file)
@@ -155,9 +155,8 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
         return;
     }
 
-    if (cpu->cfg.addr_size != 32) {
-        error_setg(errp, "addr-size %d is out of range. "
-                   "Only 32bit is supported.",
+    if (cpu->cfg.addr_size < 32 || cpu->cfg.addr_size > 64) {
+        error_setg(errp, "addr-size %d is out of range (32 - 64)",
                    cpu->cfg.addr_size);
         return;
     }