From patchwork Thu Dec 19 05:51:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 303196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AE7BA2C00B8 for ; Thu, 19 Dec 2013 17:07:06 +1100 (EST) Received: from localhost ([::1]:42311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWlD-0002bc-Pq for incoming@patchwork.ozlabs.org; Thu, 19 Dec 2013 01:07:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWiJ-00070V-Bz for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtWiD-0002Y9-Go for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:04:03 -0500 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:50659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtWiD-0002Y0-Ad for qemu-devel@nongnu.org; Thu, 19 Dec 2013 01:03:57 -0500 Received: by mail-pd0-f181.google.com with SMTP id p10so671454pdj.40 for ; Wed, 18 Dec 2013 22:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OwDoeQ6E65WfbBHlMnpjmDNaO0KHRP/hI5kPhnPLYBk=; b=y46LdvQgzr6r5tSGr2YmZtGOJMMUOhewJJVgISeRgclrTn1vZmaj7irxrMR3yUH58l QXc17p6qvu7BPnIY5+E93v6hEt+U6MRCAkmrRjY0xK1NsrzwYH0GbrBJ3dsidsFD86qg +koLlzt6Om/73JpNb8lFUHKgk/2kJTuxRMm3NIzR0ZRH7mrXiSd6fQ2gvetOgBD8HqQO NOuiH0qCasHUcX5atz4aarxIs7WsmnGHVE/pjUE29h3+HrNBXzWY5nxM44rtvattynDD jvuCDjiLKtJMMjpfz0SEYuI/u02Uj+/45f4CEoxDwK6gMae7KpmDaQpw4U6HzpJqaLyF e3fw== X-Received: by 10.68.232.132 with SMTP id to4mr38252454pbc.141.1387433036490; Wed, 18 Dec 2013 22:03:56 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id ic7sm4378236pbc.29.2013.12.18.22.03.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 22:03:55 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Thu, 19 Dec 2013 15:51:31 +1000 Message-Id: <1387432293-17711-21-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387432293-17711-1-git-send-email-edgar.iglesias@gmail.com> References: <1387432293-17711-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::235 Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v2 20/22] target-microblaze: Add address-space property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 0ef9aa4..6d39d3d 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.c @@ -93,6 +93,9 @@ static void mb_cpu_realizefn(DeviceState *dev, Error **errp) CPUState *cs = CPU(dev); MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_GET_CLASS(dev); +#ifndef CONFIG_USER_ONLY + cpu_address_space_init(cs, cs->as); +#endif cpu_reset(cs); qemu_init_vcpu(cs); @@ -123,6 +126,9 @@ static const VMStateDescription vmstate_mb_cpu = { }; static Property mb_properties[] = { +#ifndef CONFIG_USER_ONLY + DEFINE_PROP_ADDRESS_SPACE("address-space", CPUState, as), +#endif DEFINE_PROP_UINT32("xlnx.base-vectors", MicroBlazeCPU, base_vectors, 0), DEFINE_PROP_END_OF_LIST(), };