From patchwork Thu May 8 01:35:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 346868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40D041400ED for ; Thu, 8 May 2014 11:37:51 +1000 (EST) Received: from localhost ([::1]:44287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiDHR-0003bN-7O for incoming@patchwork.ozlabs.org; Wed, 07 May 2014 21:37:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiDGl-0002in-4c for qemu-devel@nongnu.org; Wed, 07 May 2014 21:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiDGf-0007Ps-2v for qemu-devel@nongnu.org; Wed, 07 May 2014 21:37:07 -0400 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:40519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiDGe-0007Pg-VO for qemu-devel@nongnu.org; Wed, 07 May 2014 21:37:01 -0400 Received: by mail-qa0-f50.google.com with SMTP id j15so1851660qaq.23 for ; Wed, 07 May 2014 18:37:00 -0700 (PDT) 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=ru1BInSy0SE2LhaHFdlUa7+6aPfZDUo68UsEMop5tig=; b=U9WWT5lZrzlSqxJMSfLARFIe+j0auHMGM3L0PK9oH0pEjKXW1tT6N5rSZsksDHlQqR uSbJ6+kc2Z4jiGk/erm9mp+JACDQJsoubu2kqoVuUvLCctbo/aVrpnfAg2Jho+HrLVIF BRWLOD6JtQet+gfVtsdTXoBeB3mqtMWFvj1RVPNJ3kP+CyjuUG429y7SgYZcuhI9NnVO e7lAbXHVziAMAkoTxCPDdGNXjCUcsWG7oJl1HfJ14W9x/b5FKir6zasYpIWRZLlXx4xj V61/tA11Va54XIYdzALTfbYwX8v6YgzaX2A50btfjwJq7lHy+8C2cDyoKAkH89N4t+mZ gJyA== X-Received: by 10.224.60.71 with SMTP id o7mr782932qah.38.1399513020658; Wed, 07 May 2014 18:37:00 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id q8sm31939891qas.5.2014.05.07.18.36.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 07 May 2014 18:36:59 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 8 May 2014 11:35:05 +1000 Message-Id: <1399512908-23925-3-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1399512908-23925-1-git-send-email-edgar.iglesias@gmail.com> References: <1399512908-23925-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:400d:c00::232 Cc: peter.crosthwaite@xilinx.com, linux@roeck-us.net Subject: [Qemu-devel] [PATCH v1 2/5] microblaze: Respect the reset vector 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 Reviewed-by: Peter Crosthwaite --- target-microblaze/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 8e04811..0379f2b 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.c @@ -96,6 +96,8 @@ static void mb_cpu_reset(CPUState *s) env->pvr.regs[10] = 0x0c000000; /* Default to spartan 3a dsp family. */ env->pvr.regs[11] = PVR11_USE_MMU | (16 << 17); + env->sregs[SR_PC] = cpu->base_vectors; + #if defined(CONFIG_USER_ONLY) /* start in user mode with interrupts enabled. */ env->sregs[SR_MSR] = MSR_EE | MSR_IE | MSR_VM | MSR_UM;