From patchwork Mon Aug 24 10:00:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732735 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0FFAD175D for ; Mon, 24 Aug 2020 10:01:47 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB7E82074D for ; Mon, 24 Aug 2020 10:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="siPh5Teh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB7E82074D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9IQ-0005jF-1w for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:01:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9HT-00045j-VX for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:48 -0400 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:32974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HR-0006UD-L0 for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:47 -0400 Received: by mail-lj1-x242.google.com with SMTP id v4so8937833ljd.0 for ; Mon, 24 Aug 2020 03:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BkCwcfBNM7BKOKl57gmWIMBqW7Axyc57b2XfxEBkcT0=; b=siPh5TehtJdwwZWxZ0MkUjNuLJdkYO8qKCGrDJjVIP/ZTnuyE6VPS3P6ByQZsHnQ+z Edqd1KIifkzPOJTlt5yH3xmjGoMwJn4HikLPrAHtlfVoNdAdJSMsAWlxNN9MrpzH0p7M tw/yBRSRgLlheGv5DB8oI8su5U2rDWoqsmZQGhoP4yuM6oaBsLk7IIoohf6eaX/Nu2Vb +XGLRaVgnoHJp/8fXWCekJQe8vmqF3eLFbKCWdYzsBsn80LdQEjuemRmUQVQdRd7PKsz u1sdg59EuYORRApkrKUx4iLSARU45CS6YeCKoIoyTLrwcwD/LhE5tSt9gsdW3RWVt6QZ p/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BkCwcfBNM7BKOKl57gmWIMBqW7Axyc57b2XfxEBkcT0=; b=WVzuv7x3KrTwYjPnGGLw/PqTaaK63HrNDNpd8o9XTGpI4X+T2/aL+3NcgY6otWefwX kMy4n4bWxEJxOqI/0fkhNnqJYjo3J2AmSdaf5WwiO5Aod+cNZgy8Hj8dkenXH/EnqjG/ c19yhQLogCm+TWIa4F63qx9UJb5yumoSop7iNXVDaX8HfudEDXN6pN1AmmtYANEIT9fR 2HCQ6XvhmrYWz03dKQHqGy9PfkZwNvJPv8uMDE4tF1NmClRFNjT9pARzWYl/b3nEyIhl tXWetcyHUivxjvgZub7jJc1hyjsbGoGErc5xW/5J5mrUqxrWrP3ccw8tY67g/sGjXXpP VikA== X-Gm-Message-State: AOAM532qU9Tq3aH/HudmhOmxm6Rh6C81sNXeFhzmo8GaAie17Pvu4QvW xgmKBcwchyygNDQqmt18W5RIMVv9aL0= X-Google-Smtp-Source: ABdhPJzVUPC6DazmOluXl4uGLfHkcAVslQcqB2WJtH2Xz4xw0g8DrF22MMkb0W5zzUdsOgIrrvkqVA== X-Received: by 2002:a05:651c:31b:: with SMTP id a27mr2163418ljp.455.1598263243821; Mon, 24 Aug 2020 03:00:43 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id l26sm2166500lfj.22.2020.08.24.03.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:43 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 1/8] target/microblaze: mbar: Transfer dc->rd to mbar_imm Date: Mon, 24 Aug 2020 12:00:34 +0200 Message-Id: <20200824100041.1864420-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::242; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x242.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Transfer dc->rd to mbar_imm to improve the readability when comparing to the specs. No functional change. Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index f6ff2591c3..47637f152b 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1229,8 +1229,10 @@ static void dec_br(DisasContext *dc) /* Memory barrier. */ mbar = (dc->ir >> 16) & 31; if (mbar == 2 && dc->imm == 4) { + uint16_t mbar_imm = dc->rd; + /* mbar IMM & 16 decodes to sleep. */ - if (dc->rd & 16) { + if (mbar_imm & 16) { TCGv_i32 tmp_hlt = tcg_const_i32(EXCP_HLT); TCGv_i32 tmp_1 = tcg_const_i32(1); @@ -1246,7 +1248,7 @@ static void dec_br(DisasContext *dc) tcg_temp_free_i32(tmp_1); return; } - LOG_DIS("mbar %d\n", dc->rd); + LOG_DIS("mbar %d\n", mbar_imm); /* Break the TB. */ dc->cpustate_changed = 1; return; From patchwork Mon Aug 24 10:00:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732733 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E10D113B1 for ; Mon, 24 Aug 2020 10:01:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7CE62071E for ; Mon, 24 Aug 2020 10:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c7Ln1MSM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7CE62071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9IP-0005l8-O3 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:01:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9HU-000463-J9 for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:48 -0400 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]:38045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HT-0006UW-1S for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:48 -0400 Received: by mail-lf1-x142.google.com with SMTP id k10so1168426lfm.5 for ; Mon, 24 Aug 2020 03:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PqHm69GgyLtMiUEuM+bi1ibVuXEct1ZgT4gQS/un0FM=; b=c7Ln1MSMX7NrzhfBXjwBYrWzvaHDtbM3Y3STk2Ko1Id3BiCgA+DXwM+sPaLXOhEcO4 tEbXhzMyoF4tSkz3KmNPvwMw0DWlvdbYNt2YOq6yFTqY5UELfAsYaw9Q4fzqkfLxgq6D /sSgp/rr/c/7OTBBv6RrDnYAwYUKNx0mI0yZVBgvS9+Ocz4GupjmoUW88epB3cKNbgsN gwgTvZPuefiJ/JYROjuyuiE1/DjXAfg/TNE93wTcDPfFZPV7iflBUnCXpcpD6x3P9Myb KKq/3NHv5IXFVux7rgM+oYiIz1RQj7CaN7euffmIhThsSe75ncxAFtxImqDN/wsrctXa 88Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PqHm69GgyLtMiUEuM+bi1ibVuXEct1ZgT4gQS/un0FM=; b=aRkjgvLzyspTB+DeMUnbacH2VSA+J1tp5K9bpmKzyMkA9t3MGsFY+fjt9t7XHBSWcA MEWmScUYTIUA+hSQFknxaRiYJtlJ+9evvbXkiSjqsKRF8vLXPEDZoHcjtRv29zicQGnb 8BtmDUMSNljzsNqKVu9XXmZxflBVVDFLv8TU2oNfhIMLEZjUNYBiE/Wkmwq+ciMxddRZ 6xwgvidLvjasag7SvDAZUCQiMHUpb0O635XbJCIzlEZLO+ddLNTg6LLMx5XZb00oXe4F 0K2VGANwogd1spPenWaZguauAyp3vDub6X4XYJG9jpv5m3+cuHvGsB7vhQGe/bnAvShs jDpw== X-Gm-Message-State: AOAM533MMUqP8o9WxSs6wyorK+oiVXFG2+qlNIL/deBd7lsEIJkF31kp NqkU1j4rhNCKfCiHH72/7o02sIHQBRw= X-Google-Smtp-Source: ABdhPJwtEn88dj2Cqrmf+iW8bANye9yZK7Rtxx7LzxCDWmYoxPYZliG4fAoAldUTylHAxLyQVzW/tg== X-Received: by 2002:a05:6512:3a5:: with SMTP id v5mr2253813lfp.138.1598263245079; Mon, 24 Aug 2020 03:00:45 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id u14sm2094383ljg.55.2020.08.24.03.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:44 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 2/8] target/microblaze: mbar: Move LOG_DIS to before sleep Date: Mon, 24 Aug 2020 12:00:35 +0200 Message-Id: <20200824100041.1864420-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::142; envelope-from=edgar.iglesias@gmail.com; helo=mail-lf1-x142.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Move LOG_DIS log to before sleeping handling so that it logs for sleep instructions aswell. Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 47637f152b..c1be76d4c8 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1231,6 +1231,8 @@ static void dec_br(DisasContext *dc) if (mbar == 2 && dc->imm == 4) { uint16_t mbar_imm = dc->rd; + LOG_DIS("mbar %d\n", mbar_imm); + /* mbar IMM & 16 decodes to sleep. */ if (mbar_imm & 16) { TCGv_i32 tmp_hlt = tcg_const_i32(EXCP_HLT); @@ -1248,7 +1250,6 @@ static void dec_br(DisasContext *dc) tcg_temp_free_i32(tmp_1); return; } - LOG_DIS("mbar %d\n", mbar_imm); /* Break the TB. */ dc->cpustate_changed = 1; return; From patchwork Mon Aug 24 10:00:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732741 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20F4513B1 for ; Mon, 24 Aug 2020 10:03:15 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ECBC52071E for ; Mon, 24 Aug 2020 10:03:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OaJXk2AB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECBC52071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:43360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9Jq-0000UN-97 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9Hb-0004Ex-2l for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:55 -0400 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]:38870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HV-0006V7-Mt for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:54 -0400 Received: by mail-lj1-x244.google.com with SMTP id m22so8911653ljj.5 for ; Mon, 24 Aug 2020 03:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t3L8Z1SmwEHzDQ0NMcpyNGKg+ERouypWp63Pju5T3RM=; b=OaJXk2ABkNrW6C4cUnqZXT0Xti2ZPCQPAqouRQAmtbFOStRqwlpmmU1M7vvj14U68c PxAOsPtHtuoZQEfqShfeK75dGLxuNn1l8l8P8fACnxUVKqFkAnZfdipFcAiC0Zegub6t msxFKGbrAYU9MGobwYZx9Ak2x1Zo6pbz5MlfN37aNCBYvrhMX32yT25GJX7UsjEHcO6K EQPi9eeF5AZ9yUE9CedLfDoiXpTO10jDpKYIeHWn7aV22ealo0ooE8XHcvtBN+beQMnd RBFZ7wm6RwxTc327GqbuXBeQ84M01r0//lTih24Qe62dhegJEW3xWQNAs4ds+kwzrp8O GNog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t3L8Z1SmwEHzDQ0NMcpyNGKg+ERouypWp63Pju5T3RM=; b=NFVhRGyn58y2eOBUGc/O45XIMkrGMlGCtpWcnv9qidhoIV0HemrApL+xbzd1NTMfGh W17WPT23j2ANc03x0yL4E4QUWYFAI6C3NFZQO4WSbL9vS7y4GgVg56kOhb1S8AlSfiyW e+43Vs0y8orKOjVNHK4Y1avWD+3ZzglEXP0YxzbfsLp7VJ6UYAoCHlR3NcOdtD3RRngH J0qFuqcj2lAeVTGGW09v2vMobkC+jQyb+T3z0EgJsq0l3vNgN93FmghHjl4f0cwh3Xav 7T1Pet+p9nFC0JX89NRnu6qboL+WNrJFdBCKjOVqngbH3hjIv7N0VS16Vd7dtE8Y5YOt wh8g== X-Gm-Message-State: AOAM53245ExW3YU+hOpMASPw6zKIU83ek3rSZfvS2k9zEJUU0jZgPQZt h85Ik53XKW2fl3EOHnzlZtq67nWJGYM= X-Google-Smtp-Source: ABdhPJzHgYsSqpDSAOZqrJuW6MujRYaMEswvlMgkx94rnJwpmT1T0a8vA44i/MyLBKeusPnE064QeA== X-Received: by 2002:a2e:2f16:: with SMTP id v22mr2256890ljv.39.1598263246241; Mon, 24 Aug 2020 03:00:46 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id j4sm2075000ljc.116.2020.08.24.03.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:45 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 3/8] target/microblaze: mbar: Add support for data-access barriers Date: Mon, 24 Aug 2020 12:00:36 +0200 Message-Id: <20200824100041.1864420-4-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::244; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x244.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Add support for data-access barriers. Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index c1be76d4c8..c58f334a0f 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1233,6 +1233,11 @@ static void dec_br(DisasContext *dc) LOG_DIS("mbar %d\n", mbar_imm); + /* Data access memory barrier. */ + if ((mbar_imm & 2) == 0) { + tcg_gen_mb(TCG_BAR_SC | TCG_MO_ALL); + } + /* mbar IMM & 16 decodes to sleep. */ if (mbar_imm & 16) { TCGv_i32 tmp_hlt = tcg_const_i32(EXCP_HLT); From patchwork Mon Aug 24 10:00:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732739 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9440113B1 for ; Mon, 24 Aug 2020 10:03:13 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 688942071E for ; Mon, 24 Aug 2020 10:03:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ANIBRops" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 688942071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:43188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9Jo-0000Q5-NN for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:03:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9HX-00047J-C6 for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:51 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:37434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HV-0006V6-NY for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:51 -0400 Received: by mail-lf1-x132.google.com with SMTP id s9so4155704lfs.4 for ; Mon, 24 Aug 2020 03:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tOsYxxOVVUOXw/haaoRA8JuTUt7/rqYWB9o2RGYk5jg=; b=ANIBRops0jltDXrngIS0dY3S8GecFcmd5+bmZzcTP5eWRfs3crxqQ2aEa1Ombu3IM9 UkRHgegzgC6VF3buMokQSLaNgsxYQfp3OT2IvSUpNTIRLm6Y+nZMtoM5mo8gDdNQ+A3I TwnSYC1c166W344Z468aWj5E29EnhCeerQ0CC2FsX+oTtSTfkNi+1VpQd+KfDB7WNCbU r1u2mn32hjSesUDQi5ksAiiORx7t84nC4t5gRd/SY/yoDmAeoHwzt9ePiCIm0PP2KpGd EGlOfEmmnKHL97pEIyOyAnZL2a1C3JvBjZ1RddADMN9F/GXYTRaua8L/ZNubqia/bIrM 9IUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tOsYxxOVVUOXw/haaoRA8JuTUt7/rqYWB9o2RGYk5jg=; b=sW6mETLNUFhCqPg8d7B/g1QdEmZyB8z9g7mpvUNAV6z7JY5U3EE1xvuBXWIVyvxyUz yFSMbUrCOMD4DyX1Hm0IJaDKwjNqU+lQKJhmZUcRMKrGg8QUnp8YtQCqxXWErTrIFS02 iFnxff55eIBxL4T1hm14DVPSbMU7aMPljW8YfsILwRuiY/1/q/+HleZkveb+7rdFqHeG 99QAJlOiVv96m183vEBx0kF+HTLJhG5O8xdVP9u3i8n3Wmfl0k+u4k/I2ZbY2K4dqIVt StB8hLYH03Hzb1p2+DBKLu9Uu1mONdFQvawJMCL0oqL7spmpBridKDvxMKzBnZuU3cJc ED3Q== X-Gm-Message-State: AOAM530WPwfhbOiy4NYW4r/bFW733UvfuvrYakbLQGC4xH+kZ9mZCiOH K5omz9CDTWUmkyi9WwyDJv+BPXnZo3g= X-Google-Smtp-Source: ABdhPJyBds09UlW/kAkp/Bj84+y6X8CzaZ09zYqx2ZODbdzB4PueHV9wi98xRl3TR+faa/X1PxRulQ== X-Received: by 2002:ac2:55b4:: with SMTP id y20mr335362lfg.103.1598263247403; Mon, 24 Aug 2020 03:00:47 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id f3sm2107511ljo.81.2020.08.24.03.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:46 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 4/8] target/microblaze: swx: Use atomic_cmpxchg Date: Mon, 24 Aug 2020 12:00:37 +0200 Message-Id: <20200824100041.1864420-5-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=edgar.iglesias@gmail.com; helo=mail-lf1-x132.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Use atomic_cmpxchg to implement the atomic cmpxchg sequence. Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index c58f334a0f..530c15e5ad 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1075,14 +1075,16 @@ static void dec_store(DisasContext *dc) swx_skip = gen_new_label(); tcg_gen_brcond_tl(TCG_COND_NE, env_res_addr, addr, swx_skip); - /* Compare the value loaded at lwx with current contents of - the reserved location. - FIXME: This only works for system emulation where we can expect - this compare and the following write to be atomic. For user - emulation we need to add atomicity between threads. */ + /* + * Compare the value loaded at lwx with current contents of + * the reserved location. + */ tval = tcg_temp_new_i32(); - tcg_gen_qemu_ld_i32(tval, addr, cpu_mmu_index(&dc->cpu->env, false), - MO_TEUL); + + tcg_gen_atomic_cmpxchg_i32(tval, addr, env_res_val, + cpu_R[dc->rd], mem_index, + mop); + tcg_gen_brcond_i32(TCG_COND_NE, env_res_val, tval, swx_skip); write_carryi(dc, 0); tcg_temp_free_i32(tval); @@ -1108,7 +1110,10 @@ static void dec_store(DisasContext *dc) break; } } - tcg_gen_qemu_st_i32(cpu_R[dc->rd], addr, mem_index, mop); + + if (!ex) { + tcg_gen_qemu_st_i32(cpu_R[dc->rd], addr, mem_index, mop); + } /* Verify alignment if needed. */ if (dc->cpu->cfg.unaligned_exceptions && size > 1) { From patchwork Mon Aug 24 10:00:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 350A4913 for ; Mon, 24 Aug 2020 10:01:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0AC832071E for ; Mon, 24 Aug 2020 10:01:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pziHfGYh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AC832071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9IU-0005sz-56 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:01:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9HY-0004AX-TT for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:52 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:36886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HW-0006VN-MF for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:52 -0400 Received: by mail-lj1-x233.google.com with SMTP id w14so8914852ljj.4 for ; Mon, 24 Aug 2020 03:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dd0EJqBzQHROoOB+Rn94QdMh9XLX7GYS6cokwONIqVU=; b=pziHfGYhMC/iWsOnUi2CgZkNDxcuFp2meX13mNkMLtXH6J3OT8jTyeWd6sudEaMI61 RyUc0pUt4PIaPGD7HM8/iG9yoAHAB4oRDAuhZNNPMyzw9Wje31Mrr7cmTut6HSL8q4vP /Wbnul9O9lX6cwJSIWiw/y5sHoKmFq/VmcH2I+DtygW7y+ttXrmITxEe/fbRSGv5dwUl jaF2Je6cO3Or8DeIiViSReVqv8IkYKBi08r7FuVF7vGtp2vfNCfr5dLSIAtcYo6xFU7I qlCadpqkvWDvVZpkyP8kfVdBBXDEWiGIUosqKbp6eKggx5JLrTieL47lxn30pxN1/9Yu OLWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dd0EJqBzQHROoOB+Rn94QdMh9XLX7GYS6cokwONIqVU=; b=DlElGDt9R/Q6qECyNrI4s5bxcPnHBuE+20LqjrB3VVbfmLsbuKS52Voa/a+0jNKTdN iDxlt2E1ng6yKUsKaqpADd4p3ayEws0Ri/i3m1yao3QcBHyRRpdWcQoTIXsdCdYdKyUN y+pZxwBDFpqasRmXtrpXfafGn4N2kof+xtiw6uWNyfoWy4Skch10fDeM0K10WbA5kko7 kt7tBIsgpN9j/2hjOHhpyOXCDgmhCvEJlWxLG9YgWX8K9hKEHitJB52S5fIESi3YbHOg LuhEca7AR7ipW9rPRbQm7KP3D4hTqUNwA2GTntltpEX44pcRXZBaafW7V+mtCsD+WcuF uiMg== X-Gm-Message-State: AOAM532FzdyVL5Np2luIVWn4evBCD7+1tZEu/dzWfR/XoOGBHlUXEsV1 bzxS1Nla0nUq7WAGhCr9ey33wXiOHhQ= X-Google-Smtp-Source: ABdhPJzUx//VV7Z8T+ypJUtu3bWSrAezzxKizV3qVivqXg/ycTKXcpSoVDnvCEoGS9C2/UCW5z8y7g== X-Received: by 2002:a2e:2c0e:: with SMTP id s14mr2424491ljs.28.1598263248682; Mon, 24 Aug 2020 03:00:48 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id h13sm2080703lji.134.2020.08.24.03.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:48 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 5/8] configure: microblaze: Enable mttcg Date: Mon, 24 Aug 2020 12:00:38 +0200 Message-Id: <20200824100041.1864420-6-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x233.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Reviewed-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 67832e3bab..b8f5b81a67 100755 --- a/configure +++ b/configure @@ -7782,6 +7782,7 @@ case "$target_name" in microblaze|microblazeel) TARGET_ARCH=microblaze TARGET_SYSTBL_ABI=common + mttcg="yes" bflt="yes" echo "TARGET_ABI32=y" >> $config_target_mak ;; From patchwork Mon Aug 24 10:00:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732749 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7BA71175D for ; Mon, 24 Aug 2020 10:05:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 50E3D2071E for ; Mon, 24 Aug 2020 10:05:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tkAwyrGJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50E3D2071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:52700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9MG-0004Kh-Io for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:05:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9Ha-0004D2-9O for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:54 -0400 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]:35406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HX-0006VZ-IH for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:53 -0400 Received: by mail-lj1-x244.google.com with SMTP id i10so8919996ljn.2 for ; Mon, 24 Aug 2020 03:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3n8Wp2a8qSMeZ1oN4JeQX3v5twZlCa2C41KCZdHZhHo=; b=tkAwyrGJCWFJM7JqF8LNANs5jUuBOyprjsogtsGXfWLP/O5PEgO8moB2iJozZEB5uw E4HKiouL+rcggVl1UEQqDkDAZj0oHeGYjQ2bm474xL62nd8AUjKQmmIB9/ly0vmUOlXk Out0Bezqct7RG2aTfaj0xVw+95GvxkVJTQuCsnMLydYxh8hWtQcDbPkq/kDsYQFJC6Lt ddSZ/OUyGLFvL0/FNXcCQJH5viF3uH3HlD7CyJZ7CPEqpNY3Lv/jRh/dk9DIdSW81nxY QBwmzPWaiTycdNxaeG9sKuRMtveUCKhq9wuCAorg3ezrcJoGjdP2Yn5JHARKfYKNJyrG jomA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3n8Wp2a8qSMeZ1oN4JeQX3v5twZlCa2C41KCZdHZhHo=; b=BBaLx4GHN/yc3YxBt+LcA7jys2KMhlEoC2Ow0tN8LY11e1uZLYFYA1AsZz82jJ0SJX L/HyL/3eTqYN7MBhZxU95d8iiipGV90nejWB+0g3VTOBKI4veKlFXIkc7YM7IcNI075C R5XwEyE7STJWc9PNOa71lAN+xwbE6hYkREsq6wWur7Hc+Uk+6fdGlPVi23n5JLY6cqu8 iTm348c24N+uvcYHn5i+aOXPGHvrU3BrMQ7I347hc7erd81pImrpSYXwv8QGiXHyIEki hmqRq8+REeQyXnbbQPgVxmIeYyrjWp08FB6f7Py2lIVqxqv7TBDfu6BaGE1Bvyy9BsL8 KSuw== X-Gm-Message-State: AOAM530WfYgLWtFGWJYs4M3o7eid/PrxKCcH+KDw8VhsyfFIyLIIyBt3 hfy4o2I17z+03JtB99LOzherOhndqlE= X-Google-Smtp-Source: ABdhPJycRQuBIQzifqoG4ELJPq6yT/PIvIYp3Wrfjlp411ldcXV303RVqK2ngebpyasv5MmVhaJOsQ== X-Received: by 2002:a2e:8710:: with SMTP id m16mr207687lji.244.1598263249827; Mon, 24 Aug 2020 03:00:49 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id m13sm1927294lfl.30.2020.08.24.03.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:49 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 6/8] target/microblaze: mbar: Trap sleeps from user-space Date: Mon, 24 Aug 2020 12:00:39 +0200 Message-Id: <20200824100041.1864420-7-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::244; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x244.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Trap mbar-sleeps from user-space. Reviewed-by: Richard Henderson Reported-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 530c15e5ad..a96cb21d96 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1250,6 +1250,11 @@ static void dec_br(DisasContext *dc) LOG_DIS("sleep\n"); + if (trap_userspace(dc, true)) { + /* Sleep is a privileged instruction. */ + return; + } + t_sync_flags(dc); tcg_gen_st_i32(tmp_1, cpu_env, -offsetof(MicroBlazeCPU, env) From patchwork Mon Aug 24 10:00:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732747 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 113AE913 for ; Mon, 24 Aug 2020 10:04:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC4B92075B for ; Mon, 24 Aug 2020 10:04:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oGPNDpsP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC4B92075B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:49654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9LI-00031M-2V for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:04:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9Hc-0004JT-Mb for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:56 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:38871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9HZ-0006Vp-M6 for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:56 -0400 Received: by mail-lj1-x243.google.com with SMTP id m22so8911913ljj.5 for ; Mon, 24 Aug 2020 03:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IWN4qU12HS0woZTjIAIO7apv40KJIOmkEvFwnL+ngmU=; b=oGPNDpsPrJaYV8GziCVj79wvgMmdA9iZ4D1IsrjYO/Yel1ztGYUbCpJS6K7LJlTSsB Gyh7/8ONBB9O/e7N0rfCNI5lQKHeB9tPLfYXPNR8/FSXQeYxDdFF7X+nukKxocOn/lsr z7ejgtPMACqHwqCcm6KZVSBLqxUss5+2HgEspYRJ0U0wqQUr9O8KxHlU8aX/RNlBNAMM j0zmHZ6kD9kMZdBjk0k7niVJcqR8oV7depTvhTzoO40/3AUf3NgeE0MTYm7sjIVLusWV RiHIiUe1YnBBfOgjbXHMr2s3xd6XnO+am/mivES+jWljLgPveTwUK/6+8afRd/CNwIl1 kNPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IWN4qU12HS0woZTjIAIO7apv40KJIOmkEvFwnL+ngmU=; b=Wz56StEIDIY/Jr0FMu1eYLc2gQjop7bPcFEMT0hTcjdGMs0wCtqZ7cmtZNFU2n/5xg V9BwjyaPj5gdgmYOKy6TqgTdIJlXiOgMSEgBO9l0OHtTL1JtdGrBjEOzjRD7LPWw5tRY cjSeldqt+8+Hgu24nhxsyOF8mElGBHQ7/kPMEPD7GK4WJKlJIFaXC/JetE3XBEoS5FEn QGcsV9+k2mhZs7cEtM90hOmGIvWt5HwLJtRJ2oIpg0JtFp6pdE5NP2rUS893xEjkrw1f mUaad4nZDazrRKZKDBDxOnIFLdKy6iCa/tcvQ1/9n63X5tOGOlJZkULpBJofS0yCKwRo cpaw== X-Gm-Message-State: AOAM5319WPX4gvF94Ty1pSi0n/zCExCE9gdHiVqalDJVFxqmdz+JRzSF lrqsnCL4igWZRH+NeopLpZ6CGfCAE7Y= X-Google-Smtp-Source: ABdhPJy31iBxj7am2WGBlVs9pq94D74thzMheDDbSBRgKKJ0utfBjxGfPWZ0HW76WcLs1o9LhZTcYg== X-Received: by 2002:a05:651c:1069:: with SMTP id y9mr2323494ljm.438.1598263251045; Mon, 24 Aug 2020 03:00:51 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id 1sm2087812ljr.6.2020.08.24.03.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:50 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 7/8] microblaze: petalogix-ml605: Add device-tree source Date: Mon, 24 Aug 2020 12:00:40 +0200 Message-Id: <20200824100041.1864420-8-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::243; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x243.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Add a device-tree source for petalogix-ml605 and recompile the DTB. Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- pc-bios/petalogix-ml605.dtb | Bin 9982 -> 9882 bytes pc-bios/petalogix-ml605.dts | 350 ++++++++++++++++++++++++++++++++++++ 2 files changed, 350 insertions(+) create mode 100644 pc-bios/petalogix-ml605.dts diff --git a/pc-bios/petalogix-ml605.dtb b/pc-bios/petalogix-ml605.dtb index fbbd45fdad06489c6333b6de868f44dfaed405bf..9a05434db7f622d1b598d2cf1415c867cf7f5cc6 100644 GIT binary patch literal 9882 zcmai3YltLQ6|UabJa%?xB1w#H(9zWxb!zOM*-gf1a1>v`5Ce%M5M`~dy4_t&y{xL9 z=^hLuCK#1Pe1K0BF)C3M6Z~UDG{irFh$a}+A3c^DcTs)mxt(jSl1ch^~{& z;APYeCazPHB%7?IaaiX4B-j_!gly;VTqdHO-e!+PUMCf4UQV~qc2yynv0GC*5=j~P zyLCN2w6lj$?F302RH8yv+ML4oo8J&jVtRa0k3^Y?dV6c*$}Q@E%%t5#_Y{jK$0cRe5z+h$5}WcU;3o`3#% zhQEyZD#PFNJPN;UzXm@z{*lA?u*3H_j8|Fvzc9WRL4H}2Dr?ML+aK~(789@M*q9No z&Piw~kF~z@3e-CcU*X{Q08=sc=M=Q~R^}h^V_mfPzT)6}oc2EeUd3bhX@a9sFltD!Tn) z`eyA9zl34+3xCV93@&5K4A09xz%Iv48Q!(w&D`+w0Fz0i| zc=$fY{>P5}V~+l*Ha;R31Z2AZBQHap&B2jP$NpUozQw^gu<`ct_Of=A2Ir0q0a691WZNiWx7$_;0sY__D4?x8{fctl=6>?vAy1x8Db* zV)#CXI@jL~%*K0+_6M&2nS*}~Ok9TVkB`ZBd+zmQhlkp2;A#3Y z=d-`D-tD0ud1>H`=tkFtoKUt zq-mGxI@uEU)<U1qw3((k=Xg%RSD8~ZF5;&`-()NE=FShIM%uxT@M`{a;-VL;|WM;bhh0Bej8D^Y+v6*-L%2l zUig0J*2%WkzrdU>JOn)zQ(C(ox9%ROSQd<@wBQ%>eq29O8iI(St1`4 z>ov4(Vl7+E#Mw&q&Z>D1j2Zbrg={chZ|jZ+@Y#yl;yNU&c(lzydA{i6*&@vck3j%T zMfaPWs6{8>ck z-v9EY=$nd;$8uLei{I{G_!`{9?6Edl_)Z67K3e*F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4$5&@4dw1!j`25H(V`rWk|6WpzwAT`^jV=W#wuDM3hMN$4bHmZ ztX)ni(3}cuPVO`I5nK=oGY(NQsngO&8s|7&boQ%2r0Kfa4P|IZ;^X!rTvc|}dMbx& zN*X)fsyi$Z&1MTO%Cwx&&L4!ywjWfJER+EN8x9cLy6Pia#Pme03VmE=hSCc|Rn=99 zR~QM!TY3a7j>3LDFwa&9Dam0T6ou4#;Sj4YgNp@2g5kD>O{a(T&8yWQ?#Z);5~9R9 z_Q!GNlkbCF;rJlH-l&u%G&96#BV&hw`}~ERz~m3z`BI#OrAh!2;wep8m=EEkaZ%{A ztd01=Ogacb#}Z&S6|cPfJX5D=UB-R88A)`zBYHi_tEqwYTO#54cAQ1DKf^-qgV>!p z!bdU0Sh_*BZF)?9v!K8g_;-Rl@(U-)=;-9*!y2x`0WJ}KTLw*~z_f+jpmmZ=TgW~8 z6)ZOFUNSna=ysAL8KjSCF!r&y&Cvk1ja`95V|su)wz}iAUbofjj(WpZZ=v*AN#<&}edlhOlabymr zk<%HFhq*j*gq#*6Kk29XAkFMPNaJu}n;G~;Trm8+3MMMCX!kM2GCHnUM#mM)=+wa| z8X=p_uv;?8YRM#}B~yGMo8~iRiqDiOK2xUn2D`X_JN}t6#b?SCpDAnj@)>-Mtl?{9 z4PPTue97+46rU+me5OqCnKH#!;9g1N. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + #address-cells = < 0x01 >; + #size-cells = < 0x01 >; + compatible = "xlnx,microblaze"; + model = "edk131"; + + memory@50000000 { + device_type = "memory"; + reg = < 0x50000000 0x10000000 >; + }; + + aliases { + ethernet0 = "/axi/axi-ethernet@82780000"; + serial0 = "/axi/serial@83e00000"; + }; + + chosen { + bootargs = " console=ttyS0,115200 "; + stdout-path = "/axi/serial@83e00000"; + }; + + cpus { + #address-cells = < 0x01 >; + #cpus = < 0x01 >; + #size-cells = < 0x00 >; + + cpu@0 { + clock-frequency = < 0xbebc200 >; + compatible = "xlnx,microblaze-8.10.a"; + d-cache-baseaddr = < 0x50000000 >; + d-cache-highaddr = < 0x5fffffff >; + d-cache-line-size = < 0x20 >; + d-cache-size = < 0x800 >; + device_type = "cpu"; + i-cache-baseaddr = < 0x50000000 >; + i-cache-highaddr = < 0x5fffffff >; + i-cache-line-size = < 0x20 >; + i-cache-size = < 0x800 >; + model = "microblaze,8.10.a"; + reg = < 0x00 >; + timebase-frequency = < 0xbebc200 >; + xlnx,addr-tag-bits = < 0x11 >; + xlnx,allow-dcache-wr = < 0x01 >; + xlnx,allow-icache-wr = < 0x01 >; + xlnx,area-optimized = < 0x00 >; + xlnx,branch-target-cache-size = < 0x00 >; + xlnx,cache-byte-size = < 0x800 >; + xlnx,d-axi = < 0x01 >; + xlnx,d-lmb = < 0x01 >; + xlnx,d-plb = < 0x00 >; + xlnx,data-size = < 0x20 >; + xlnx,dcache-addr-tag = < 0x11 >; + xlnx,dcache-always-used = < 0x01 >; + xlnx,dcache-byte-size = < 0x800 >; + xlnx,dcache-data-width = < 0x00 >; + xlnx,dcache-force-tag-lutram = < 0x00 >; + xlnx,dcache-interface = < 0x01 >; + xlnx,dcache-line-len = < 0x08 >; + xlnx,dcache-use-fsl = < 0x00 >; + xlnx,dcache-use-writeback = < 0x01 >; + xlnx,dcache-victims = < 0x00 >; + xlnx,debug-enabled = < 0x01 >; + xlnx,div-zero-exception = < 0x01 >; + xlnx,dynamic-bus-sizing = < 0x01 >; + xlnx,ecc-use-ce-exception = < 0x00 >; + xlnx,edge-is-positive = < 0x01 >; + xlnx,endianness = < 0x01 >; + xlnx,family = "virtex6"; + xlnx,fault-tolerant = < 0x00 >; + xlnx,fpu-exception = < 0x01 >; + xlnx,freq = < 0xbebc200 >; + xlnx,fsl-data-size = < 0x20 >; + xlnx,fsl-exception = < 0x00 >; + xlnx,fsl-links = < 0x00 >; + xlnx,i-axi = < 0x01 >; + xlnx,i-lmb = < 0x01 >; + xlnx,i-plb = < 0x00 >; + xlnx,icache-always-used = < 0x01 >; + xlnx,icache-data-width = < 0x00 >; + xlnx,icache-force-tag-lutram = < 0x00 >; + xlnx,icache-interface = < 0x00 >; + xlnx,icache-line-len = < 0x08 >; + xlnx,icache-streams = < 0x00 >; + xlnx,icache-use-fsl = < 0x00 >; + xlnx,icache-victims = < 0x00 >; + xlnx,ill-opcode-exception = < 0x01 >; + xlnx,instance = "microblaze_0"; + xlnx,interconnect = < 0x02 >; + xlnx,interrupt-is-edge = < 0x00 >; + xlnx,mmu-dtlb-size = < 0x04 >; + xlnx,mmu-itlb-size = < 0x02 >; + xlnx,mmu-privileged-instr = < 0x00 >; + xlnx,mmu-tlb-access = < 0x03 >; + xlnx,mmu-zones = < 0x02 >; + xlnx,number-of-pc-brk = < 0x01 >; + xlnx,number-of-rd-addr-brk = < 0x00 >; + xlnx,number-of-wr-addr-brk = < 0x00 >; + xlnx,opcode-0x0-illegal = < 0x01 >; + xlnx,optimization = < 0x00 >; + xlnx,pvr = < 0x02 >; + xlnx,pvr-user1 = < 0x00 >; + xlnx,pvr-user2 = < 0x00 >; + xlnx,reset-msr = < 0x00 >; + xlnx,sco = < 0x00 >; + xlnx,stream-interconnect = < 0x00 >; + xlnx,unaligned-exceptions = < 0x01 >; + xlnx,use-barrel = < 0x01 >; + xlnx,use-branch-target-cache = < 0x00 >; + xlnx,use-dcache = < 0x01 >; + xlnx,use-div = < 0x01 >; + xlnx,use-ext-brk = < 0x01 >; + xlnx,use-ext-nm-brk = < 0x01 >; + xlnx,use-extended-fsl-instr = < 0x00 >; + xlnx,use-fpu = < 0x01 >; + xlnx,use-hw-mul = < 0x02 >; + xlnx,use-icache = < 0x01 >; + xlnx,use-interrupt = < 0x01 >; + xlnx,use-mmu = < 0x03 >; + xlnx,use-msr-instr = < 0x01 >; + xlnx,use-pcmp-instr = < 0x01 >; + xlnx,use-stack-protection = < 0x00 >; + }; + }; + + axi { + #address-cells = < 0x01 >; + #size-cells = < 0x01 >; + compatible = "xlnx,axi-interconnect-1.02.a\0simple-bus"; + ranges; + + axi-ethernet@82780000 { + axistream-connected = < &axi_dma >; + compatible = "xlnx,axi-ethernet-2.01.a\0xlnx,axi-ethernet-1.00.a"; + device_type = "network"; + interrupt-parent = < &intc >; + interrupts = < 0x03 0x02 >; + local-mac-address = [ 00 0a 35 00 22 01 ]; + phy-handle = < &phy7 >; + reg = < 0x82780000 0x40000 >; + xlnx,avb = < 0x00 >; + xlnx,halfdup = < 0x00 >; + xlnx,include-io = < 0x01 >; + xlnx,mcast-extend = < 0x00 >; + xlnx,phy-type = < 0x01 >; + xlnx,phyaddr = "0B00001"; + xlnx,rxcsum = < 0x00 >; + xlnx,rxmem = < 0x1000 >; + xlnx,rxvlan-strp = < 0x00 >; + xlnx,rxvlan-tag = < 0x00 >; + xlnx,rxvlan-tran = < 0x00 >; + xlnx,stats = < 0x00 >; + xlnx,txcsum = < 0x00 >; + xlnx,txmem = < 0x1000 >; + xlnx,txvlan-strp = < 0x00 >; + xlnx,txvlan-tag = < 0x00 >; + xlnx,txvlan-tran = < 0x00 >; + xlnx,type = < 0x02 >; + + mdio { + #address-cells = < 0x01 >; + #size-cells = < 0x00 >; + + phy7: phy@7 { + compatible = "marvell,88e1111"; + device_type = "ethernet-phy"; + reg = < 0x07 >; + }; + }; + }; + + axi_dma: axi-dma@84600000 { + compatible = "xlnx,axi-dma-3.00.a"; + interrupt-parent = < &intc >; + interrupts = < 0x01 0x02 0x00 0x02 >; + reg = < 0x84600000 0x10000 >; + xlnx,dlytmr-resolution = < 0x4e2 >; + xlnx,family = "virtex6"; + xlnx,include-mm2s = < 0x01 >; + xlnx,include-mm2s-dre = < 0x01 >; + xlnx,include-s2mm = < 0x01 >; + xlnx,include-s2mm-dre = < 0x01 >; + xlnx,mm2s-burst-size = < 0x10 >; + xlnx,prmry-is-aclk-async = < 0x00 >; + xlnx,s2mm-burst-size = < 0x10 >; + xlnx,sg-include-desc-queue = < 0x01 >; + xlnx,sg-include-stscntrl-strm = < 0x01 >; + xlnx,sg-length-width = < 0x10 >; + xlnx,sg-use-stsapp-length = < 0x01 >; + }; + + serial@83e00000 { + clock-frequency = < 0x5f5e100 >; + compatible = "xlnx,axi-uart16550-1.01.a\0xlnx,xps-uart16550-2.00.a\0ns16550a"; + current-speed = < 0x2580 >; + device_type = "serial"; + interrupt-parent = < &intc >; + interrupts = < 0x05 0x02 >; + reg = < 0x83e00000 0x10000 >; + reg-offset = < 0x1000 >; + reg-shift = < 0x02 >; + xlnx,external-xin-clk-hz = < 0x17d7840 >; + xlnx,family = "virtex6"; + xlnx,has-external-rclk = < 0x00 >; + xlnx,has-external-xin = < 0x00 >; + xlnx,is-a-16550 = < 0x01 >; + xlnx,use-modem-ports = < 0x00 >; + xlnx,use-user-ports = < 0x00 >; + }; + + system-timer@83c00000 { + clock-frequency = < 0x5f5e100 >; + compatible = "xlnx,axi-timer-1.01.a\0xlnx,xps-timer-1.00.a"; + interrupt-parent = < &intc >; + interrupts = < 0x02 0x00 >; + reg = < 0x83c00000 0x10000 >; + xlnx,count-width = < 0x20 >; + xlnx,family = "virtex6"; + xlnx,gen0-assert = < 0x01 >; + xlnx,gen1-assert = < 0x01 >; + xlnx,one-timer-only = < 0x00 >; + xlnx,trig0-assert = < 0x01 >; + xlnx,trig1-assert = < 0x01 >; + }; + + intc: interrupt-controller@81800000 { + #interrupt-cells = < 0x02 >; + compatible = "xlnx,axi-intc-1.01.a\0xlnx,xps-intc-1.00.a"; + interrupt-controller; + reg = < 0x81800000 0x10000 >; + xlnx,kind-of-intr = < 0x04 >; + xlnx,num-intr-inputs = < 0x06 >; + }; + + flash@86000000 { + #address-cells = < 0x01 >; + #size-cells = < 0x01 >; + bank-width = < 0x02 >; + compatible = "xlnx,axi-emc-1.01.a\0cfi-flash"; + reg = < 0x86000000 0x2000000 >; + xlnx,axi-clk-period-ps = < 0x2710 >; + xlnx,family = "virtex6"; + xlnx,include-datawidth-matching-0 = < 0x01 >; + xlnx,include-datawidth-matching-1 = < 0x00 >; + xlnx,include-datawidth-matching-2 = < 0x00 >; + xlnx,include-datawidth-matching-3 = < 0x00 >; + xlnx,include-negedge-ioregs = < 0x00 >; + xlnx,max-mem-width = < 0x10 >; + xlnx,mem0-type = < 0x02 >; + xlnx,mem0-width = < 0x10 >; + xlnx,mem1-type = < 0x00 >; + xlnx,mem1-width = < 0x20 >; + xlnx,mem2-type = < 0x00 >; + xlnx,mem2-width = < 0x20 >; + xlnx,mem3-type = < 0x00 >; + xlnx,mem3-width = < 0x20 >; + xlnx,num-banks-mem = < 0x01 >; + xlnx,parity-type-mem-0 = < 0x00 >; + xlnx,parity-type-mem-1 = < 0x00 >; + xlnx,parity-type-mem-2 = < 0x00 >; + xlnx,parity-type-mem-3 = < 0x00 >; + xlnx,s-axi-en-reg = < 0x00 >; + xlnx,s-axi-mem-addr-width = < 0x20 >; + xlnx,s-axi-mem-data-width = < 0x20 >; + xlnx,s-axi-mem-id-width = < 0x01 >; + xlnx,s-axi-mem-protocol = "AXI4LITE"; + xlnx,s-axi-reg-addr-width = < 0x20 >; + xlnx,s-axi-reg-data-width = < 0x20 >; + xlnx,s-axi-reg-protocol = "axi4"; + xlnx,synch-pipedelay-0 = < 0x02 >; + xlnx,synch-pipedelay-1 = < 0x02 >; + xlnx,synch-pipedelay-2 = < 0x02 >; + xlnx,synch-pipedelay-3 = < 0x02 >; + xlnx,tavdv-ps-mem-0 = < 0x1fbd0 >; + xlnx,tavdv-ps-mem-1 = < 0x3a98 >; + xlnx,tavdv-ps-mem-2 = < 0x3a98 >; + xlnx,tavdv-ps-mem-3 = < 0x3a98 >; + xlnx,tcedv-ps-mem-0 = < 0x1fbd0 >; + xlnx,tcedv-ps-mem-1 = < 0x3a98 >; + xlnx,tcedv-ps-mem-2 = < 0x3a98 >; + xlnx,tcedv-ps-mem-3 = < 0x3a98 >; + xlnx,thzce-ps-mem-0 = < 0x88b8 >; + xlnx,thzce-ps-mem-1 = < 0x1b58 >; + xlnx,thzce-ps-mem-2 = < 0x1b58 >; + xlnx,thzce-ps-mem-3 = < 0x1b58 >; + xlnx,thzoe-ps-mem-0 = < 0x1b58 >; + xlnx,thzoe-ps-mem-1 = < 0x1b58 >; + xlnx,thzoe-ps-mem-2 = < 0x1b58 >; + xlnx,thzoe-ps-mem-3 = < 0x1b58 >; + xlnx,tlzwe-ps-mem-0 = < 0x88b8 >; + xlnx,tlzwe-ps-mem-1 = < 0x00 >; + xlnx,tlzwe-ps-mem-2 = < 0x00 >; + xlnx,tlzwe-ps-mem-3 = < 0x00 >; + xlnx,tpacc-ps-flash-0 = < 0x61a8 >; + xlnx,tpacc-ps-flash-1 = < 0x61a8 >; + xlnx,tpacc-ps-flash-2 = < 0x61a8 >; + xlnx,tpacc-ps-flash-3 = < 0x61a8 >; + xlnx,twc-ps-mem-0 = < 0x32c8 >; + xlnx,twc-ps-mem-1 = < 0x3a98 >; + xlnx,twc-ps-mem-2 = < 0x3a98 >; + xlnx,twc-ps-mem-3 = < 0x3a98 >; + xlnx,twp-ps-mem-0 = < 0x11170 >; + xlnx,twp-ps-mem-1 = < 0x2ee0 >; + xlnx,twp-ps-mem-2 = < 0x2ee0 >; + xlnx,twp-ps-mem-3 = < 0x2ee0 >; + xlnx,twph-ps-mem-0 = < 0x2ee0 >; + xlnx,twph-ps-mem-1 = < 0x2ee0 >; + xlnx,twph-ps-mem-2 = < 0x2ee0 >; + xlnx,twph-ps-mem-3 = < 0x2ee0 >; + + partition@0 { + label = "fpga"; + reg = < 0x00 0x100000 >; + }; + + partition@100000 { + label = "boot"; + reg = < 0x100000 0x40000 >; + }; + + partition@140000 { + label = "bootenv"; + reg = < 0x140000 0x20000 >; + }; + + partition@160000 { + label = "config"; + reg = < 0x160000 0x20000 >; + }; + + partition@180000 { + label = "image"; + reg = < 0x180000 0xa00000 >; + }; + + partition@b80000 { + label = "spare"; + reg = < 0xb80000 0x00 >; + }; + }; + }; +}; From patchwork Mon Aug 24 10:00:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11732745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E211813B1 for ; Mon, 24 Aug 2020 10:04:42 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A93B52071E for ; Mon, 24 Aug 2020 10:04:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZkHxhhuj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A93B52071E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:49452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kA9LF-0002wI-US for patchwork-qemu-devel@patchwork.kernel.org; Mon, 24 Aug 2020 06:04:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kA9Hd-0004LE-EK for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:57 -0400 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]:46152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kA9Ha-0006Vy-F0 for qemu-devel@nongnu.org; Mon, 24 Aug 2020 06:00:56 -0400 Received: by mail-lf1-x141.google.com with SMTP id v12so3938786lfo.13 for ; Mon, 24 Aug 2020 03:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NpoNPaRyQ1c80+u2gUfsduqb4j3ycvKAsA6nMD7uSUs=; b=ZkHxhhujrlaZHON9JmHrcyJ2yrfHai08gakudLQbdMa4e2A2d3JjQ9+9sasZGwZO7K MuF9DcUeJ/uIYbw4sRrf3bVlw1xl7NPJ0xNQHrcitLQBimdlO+1fn+thVLcssRp1KtAi Y+r+XdemqwU2YMYO6e6HJTss0ecNXzzLjcNInOc27B/ChYl41FcMXq0okkji1NREEXLb xpeosuteTiVsWSnRXkAkudwfifML1aSvOpVVAnrOiTx+1V3Q+ujlMypDUzra7Cunun/h mbu7FZUcD8iacJwSoM2VzcGjq1+jUwkJqHzJ4WWefhc6CD0/e7AYa5KgUT2tfcEqdWnA ZSwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NpoNPaRyQ1c80+u2gUfsduqb4j3ycvKAsA6nMD7uSUs=; b=Ng44ZUYkbJgXl0ghP9pokeFiYkdieSW7cSoCYnLB3ON7xSH2Pu9rGhgxsr3f3cKW2n dhwkPqCM6v0N5v6bIB1kT/aUvq58L5Gd3aumd4Ckd+4O2OU4aIZmkIBUoVyKH5zJE+KH ViSeYkLzfivt83ddi2UNao4SuyLqCJjIGrbodL6wLg+xfNmIdXfCiHWQqehp+cv7wUl9 h8wPMomTj3NLU1Sie5tStW/RULEZ+jTs1UaHfUj98PFCd1yKqnjCxu+o3jIrPmHLL9aC xsEOOIgWtp2Twc7sctQXatLi9fH2+VSHAhppGqZ397uf24zwDn/Hem5lzXS0mUUyE8X+ +dvA== X-Gm-Message-State: AOAM532Net/JHGPytg8eHoxPSdHdkSZQiS23qS1MIctzlNWITThf0I2D U7IXOpTK+TUUSJvoecQDXx78udfefho= X-Google-Smtp-Source: ABdhPJzsJvDdC4EhKBER5eRD4zT508VrWwPe7S6fPQarhLPURsubqo9Fmgp/bO+h8lNCofsbVTnOPQ== X-Received: by 2002:a05:6512:36cf:: with SMTP id e15mr2296297lfs.149.1598263252194; Mon, 24 Aug 2020 03:00:52 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id o66sm758425lff.76.2020.08.24.03.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:00:51 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PULL v1 8/8] microblaze: petalogix-s3adsp1800: Add device-tree source Date: Mon, 24 Aug 2020 12:00:41 +0200 Message-Id: <20200824100041.1864420-9-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200824100041.1864420-1-edgar.iglesias@gmail.com> References: <20200824100041.1864420-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::141; envelope-from=edgar.iglesias@gmail.com; helo=mail-lf1-x141.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=3.724, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Add a device-tree source for petalogix-s3adsp1800 and recompile the DTB. This also removes the unused mpmc node which causes compilation warnings. Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Edgar E. Iglesias --- pc-bios/petalogix-s3adsp1800.dtb | Bin 8259 -> 8161 bytes pc-bios/petalogix-s3adsp1800.dts | 282 +++++++++++++++++++++++++++++++ 2 files changed, 282 insertions(+) create mode 100644 pc-bios/petalogix-s3adsp1800.dts diff --git a/pc-bios/petalogix-s3adsp1800.dtb b/pc-bios/petalogix-s3adsp1800.dtb index 8ac80f2f2d191a8491b71182be50b3df2989551d..2513599438bffca96a93e877a1981efdd1a91115 100644 GIT binary patch literal 8161 zcma)ATZkn`8Sb;Qv$H!pvt|>bNRSK}jkl@Ub7oeZM57Z)9)yT^S=6VcPj{Vj+UZ;R zaxPXS_4 zm!YpQaoskJ)9FSM1x416{e4bD$o3?jJ1bsRQ92}9C*es}%y#eU%0@D>Tf(y;btG!W z?tB)2NYIYq=>(&!WufXHhhrMO9 z*WC=EF?>VH)xy&+UB7fp}+ui??Y9(DAz*Qsg!ljz&Ne<8F+{|86^yrZYNv}&NIe!tWjZi@?_S z<8-{(cpaFU;yeCU^sQWv-zT(2|9%J4I;Ez^KPX{?_knG`FF5$?4tD19_)i@DuO0k% zU~0<$BIQO+V`m>O-VU7=&*C`;zf+CX?@S0YMN{35(%WG=K7YB5I$m$ zFMgkfqv^3vODJnPi2ZW3>sznQ#_o@>)A8PczR5ocMvNzcPCXbzOz=qJChp6M0RR4< zIB9)pf7q8NsE*WB+$Y{3VS^uVaO&Vs0o#0+9sFHj@}c>EivF5~|Ll2hf7rtRMt{xV zCDh$M50+jFOil4E-HpC=UMzjU!A`tOmmEFb!>#e(1E!|=pF-c}|Eq)PY^A2`PtyLd z>`&5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Q9))AWy_;YqiZa-Q@YyyM`$jj{J&QDf7lv6Ja0Q84zgUE&fV=4p;GDxzw} z=|Q0X8n0HtjD&Qk9$p&=CyVERhX%G#N|HZL%)vIjmDN} zEAa`%+IOwPjZS}@Zt@f=anlYX6)`SE0%;Q9u-12rs)(@tTHRU#GzeII88u)cs_?6m0#D&sa@v{)8fR99|Ybc%nHvTZZ5nx-2)WtU$uy8;pZK2ad zUpVZojTlHKI~O??mkilt(_}-wZdtf_LzYeVqZF?QLyUpGoX{3YNDmVx5?;D;Y?>k7 u&_q^)tVSlR?2mYgQ>?^=OnC$W&Lc~Jdm@vswOOif<4EwR-HaqnyZ-~f?xx%T diff --git a/pc-bios/petalogix-s3adsp1800.dts b/pc-bios/petalogix-s3adsp1800.dts new file mode 100644 index 0000000000..f53c36f870 --- /dev/null +++ b/pc-bios/petalogix-s3adsp1800.dts @@ -0,0 +1,282 @@ +/* + * Copyright (c) 2020 Xilinx Inc. + * Written by Edgar E. Iglesias . + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +/ { + #address-cells = <0x01>; + #size-cells = <0x01>; + compatible = "xlnx,microblaze"; + model = "testing"; + + memory@90000000 { + device_type = "memory"; + reg = <0x90000000 0x8000000>; + }; + + chosen { + bootargs = "console=ttyUL0,115200"; + stdout-path = "/plb/serial@84000000"; + }; + + cpus { + #address-cells = <0x01>; + #size-cells = <0x00>; + #cpus = <0x01>; + + cpu@0 { + clock-frequency = <0x3b9aca0>; + compatible = "xlnx,microblaze-7.10.d"; + d-cache-baseaddr = <0x90000000>; + d-cache-highaddr = <0x97ffffff>; + d-cache-line-size = <0x10>; + d-cache-size = <0x800>; + device_type = "cpu"; + i-cache-baseaddr = <0x90000000>; + i-cache-highaddr = <0x97ffffff>; + i-cache-line-size = <0x10>; + i-cache-size = <0x800>; + model = "microblaze,7.10.d"; + reg = <0x00>; + timebase-frequency = <0x3b9aca0>; + xlnx,addr-tag-bits = <0x10>; + xlnx,allow-dcache-wr = <0x01>; + xlnx,allow-icache-wr = <0x01>; + xlnx,area-optimized = <0x00>; + xlnx,cache-byte-size = <0x800>; + xlnx,d-lmb = <0x01>; + xlnx,d-opb = <0x00>; + xlnx,d-plb = <0x01>; + xlnx,data-size = <0x20>; + xlnx,dcache-addr-tag = <0x10>; + xlnx,dcache-always-used = <0x00>; + xlnx,dcache-byte-size = <0x800>; + xlnx,dcache-line-len = <0x04>; + xlnx,dcache-use-fsl = <0x01>; + xlnx,debug-enabled = <0x01>; + xlnx,div-zero-exception = <0x00>; + xlnx,dopb-bus-exception = <0x00>; + xlnx,dynamic-bus-sizing = <0x01>; + xlnx,edge-is-positive = <0x01>; + xlnx,family = "spartan3adsp"; + xlnx,fpu-exception = <0x00>; + xlnx,fsl-data-size = <0x20>; + xlnx,fsl-exception = <0x00>; + xlnx,fsl-links = <0x00>; + xlnx,i-lmb = <0x01>; + xlnx,i-opb = <0x00>; + xlnx,i-plb = <0x01>; + xlnx,icache-always-used = <0x00>; + xlnx,icache-line-len = <0x04>; + xlnx,icache-use-fsl = <0x01>; + xlnx,ill-opcode-exception = <0x00>; + xlnx,instance = "microblaze_0"; + xlnx,interconnect = <0x01>; + xlnx,interrupt-is-edge = <0x00>; + xlnx,iopb-bus-exception = <0x00>; + xlnx,mmu-dtlb-size = <0x04>; + xlnx,mmu-itlb-size = <0x02>; + xlnx,mmu-tlb-access = <0x03>; + xlnx,mmu-zones = <0x10>; + xlnx,number-of-pc-brk = <0x03>; + xlnx,number-of-rd-addr-brk = <0x02>; + xlnx,number-of-wr-addr-brk = <0x02>; + xlnx,opcode-0x0-illegal = <0x00>; + xlnx,pvr = <0x01>; + xlnx,pvr-user1 = <0x00>; + xlnx,pvr-user2 = <0x00>; + xlnx,reset-msr = <0x00>; + xlnx,sco = <0x00>; + xlnx,unaligned-exceptions = <0x01>; + xlnx,use-barrel = <0x01>; + xlnx,use-dcache = <0x01>; + xlnx,use-div = <0x00>; + xlnx,use-ext-brk = <0x01>; + xlnx,use-ext-nm-brk = <0x01>; + xlnx,use-extended-fsl-instr = <0x00>; + xlnx,use-fpu = <0x00>; + xlnx,use-hw-mul = <0x01>; + xlnx,use-icache = <0x01>; + xlnx,use-interrupt = <0x01>; + xlnx,use-mmu = <0x03>; + xlnx,use-msr-instr = <0x01>; + xlnx,use-pcmp-instr = <0x01>; + }; + }; + + plb { + #address-cells = <0x01>; + #size-cells = <0x01>; + compatible = "xlnx,plb-v46-1.03.a\0simple-bus"; + ranges; + + ethernet@81000000 { + compatible = "xlnx,xps-ethernetlite-2.00.a"; + device_type = "network"; + interrupt-parent = <0x01>; + interrupts = <0x01 0x00>; + local-mac-address = [02 00 00 00 00 00]; + reg = <0x81000000 0x10000>; + xlnx,duplex = <0x01>; + xlnx,family = "spartan3adsp"; + xlnx,rx-ping-pong = <0x00>; + xlnx,tx-ping-pong = <0x00>; + }; + + flash@a0000000 { + bank-width = <0x01>; + compatible = "xlnx,xps-mch-emc-2.00.a\0cfi-flash"; + reg = <0xa0000000 0x1000000>; + xlnx,family = "spartan3adsp"; + xlnx,include-datawidth-matching-0 = <0x01>; + xlnx,include-datawidth-matching-1 = <0x00>; + xlnx,include-datawidth-matching-2 = <0x00>; + xlnx,include-datawidth-matching-3 = <0x00>; + xlnx,include-negedge-ioregs = <0x00>; + xlnx,include-plb-ipif = <0x01>; + xlnx,include-wrbuf = <0x01>; + xlnx,max-mem-width = <0x08>; + xlnx,mch-native-dwidth = <0x20>; + xlnx,mch-plb-clk-period-ps = <0x3e80>; + xlnx,mch-splb-awidth = <0x20>; + xlnx,mch0-accessbuf-depth = <0x10>; + xlnx,mch0-protocol = <0x00>; + xlnx,mch0-rddatabuf-depth = <0x10>; + xlnx,mch1-accessbuf-depth = <0x10>; + xlnx,mch1-protocol = <0x00>; + xlnx,mch1-rddatabuf-depth = <0x10>; + xlnx,mch2-accessbuf-depth = <0x10>; + xlnx,mch2-protocol = <0x00>; + xlnx,mch2-rddatabuf-depth = <0x10>; + xlnx,mch3-accessbuf-depth = <0x10>; + xlnx,mch3-protocol = <0x00>; + xlnx,mch3-rddatabuf-depth = <0x10>; + xlnx,mem0-width = <0x08>; + xlnx,mem1-width = <0x20>; + xlnx,mem2-width = <0x20>; + xlnx,mem3-width = <0x20>; + xlnx,num-banks-mem = <0x01>; + xlnx,num-channels = <0x00>; + xlnx,priority-mode = <0x00>; + xlnx,synch-mem-0 = <0x00>; + xlnx,synch-mem-1 = <0x00>; + xlnx,synch-mem-2 = <0x00>; + xlnx,synch-mem-3 = <0x00>; + xlnx,synch-pipedelay-0 = <0x02>; + xlnx,synch-pipedelay-1 = <0x02>; + xlnx,synch-pipedelay-2 = <0x02>; + xlnx,synch-pipedelay-3 = <0x02>; + xlnx,tavdv-ps-mem-0 = <0x11170>; + xlnx,tavdv-ps-mem-1 = <0x3a98>; + xlnx,tavdv-ps-mem-2 = <0x3a98>; + xlnx,tavdv-ps-mem-3 = <0x3a98>; + xlnx,tcedv-ps-mem-0 = <0x11170>; + xlnx,tcedv-ps-mem-1 = <0x3a98>; + xlnx,tcedv-ps-mem-2 = <0x3a98>; + xlnx,tcedv-ps-mem-3 = <0x3a98>; + xlnx,thzce-ps-mem-0 = <0x61a8>; + xlnx,thzce-ps-mem-1 = <0x1b58>; + xlnx,thzce-ps-mem-2 = <0x1b58>; + xlnx,thzce-ps-mem-3 = <0x1b58>; + xlnx,thzoe-ps-mem-0 = <0x61a8>; + xlnx,thzoe-ps-mem-1 = <0x1b58>; + xlnx,thzoe-ps-mem-2 = <0x1b58>; + xlnx,thzoe-ps-mem-3 = <0x1b58>; + xlnx,tlzwe-ps-mem-0 = <0x1388>; + xlnx,tlzwe-ps-mem-1 = <0x00>; + xlnx,tlzwe-ps-mem-2 = <0x00>; + xlnx,tlzwe-ps-mem-3 = <0x00>; + xlnx,twc-ps-mem-0 = <0x11170>; + xlnx,twc-ps-mem-1 = <0x3a98>; + xlnx,twc-ps-mem-2 = <0x3a98>; + xlnx,twc-ps-mem-3 = <0x3a98>; + xlnx,twp-ps-mem-0 = <0xafc8>; + xlnx,twp-ps-mem-1 = <0x2ee0>; + xlnx,twp-ps-mem-2 = <0x2ee0>; + xlnx,twp-ps-mem-3 = <0x2ee0>; + xlnx,xcl0-linesize = <0x04>; + xlnx,xcl0-writexfer = <0x01>; + xlnx,xcl1-linesize = <0x04>; + xlnx,xcl1-writexfer = <0x01>; + xlnx,xcl2-linesize = <0x04>; + xlnx,xcl2-writexfer = <0x01>; + xlnx,xcl3-linesize = <0x04>; + xlnx,xcl3-writexfer = <0x01>; + }; + + gpio@81400000 { + compatible = "xlnx,xps-gpio-1.00.a"; + interrupt-parent = <0x01>; + interrupts = <0x02 0x02>; + reg = <0x81400000 0x10000>; + xlnx,all-inputs = <0x00>; + xlnx,all-inputs-2 = <0x00>; + xlnx,dout-default = <0x00>; + xlnx,dout-default-2 = <0x00>; + xlnx,family = "spartan3adsp"; + xlnx,gpio-width = <0x08>; + xlnx,interrupt-present = <0x01>; + xlnx,is-bidir = <0x00>; + xlnx,is-bidir-2 = <0x01>; + xlnx,is-dual = <0x00>; + xlnx,tri-default = <0xffffffff>; + xlnx,tri-default-2 = <0xffffffff>; + }; + + serial@84000000 { + clock-frequency = <0x3b9aca0>; + compatible = "xlnx,xps-uartlite-1.00.a"; + current-speed = <0x1c200>; + device_type = "serial"; + interrupt-parent = <0x01>; + interrupts = <0x03 0x00>; + port-number = <0x00>; + reg = <0x84000000 0x10000>; + xlnx,baudrate = <0x1c200>; + xlnx,data-bits = <0x08>; + xlnx,family = "spartan3adsp"; + xlnx,odd-parity = <0x00>; + xlnx,use-parity = <0x00>; + }; + + debug@84400000 { + compatible = "xlnx,mdm-1.00.d"; + reg = <0x84400000 0x10000>; + xlnx,family = "spartan3adsp"; + xlnx,interconnect = <0x01>; + xlnx,jtag-chain = <0x02>; + xlnx,mb-dbg-ports = <0x01>; + xlnx,uart-width = <0x08>; + xlnx,use-uart = <0x01>; + xlnx,write-fsl-ports = <0x00>; + }; + + interrupt-controller@81800000 { + #interrupt-cells = <0x02>; + compatible = "xlnx,xps-intc-1.00.a"; + interrupt-controller; + reg = <0x81800000 0x10000>; + xlnx,kind-of-intr = <0x0a>; + xlnx,num-intr-inputs = <0x04>; + linux,phandle = <0x01>; + }; + + timer@83c00000 { + compatible = "xlnx,xps-timer-1.00.a"; + interrupt-parent = <0x01>; + interrupts = <0x00 0x02>; + reg = <0x83c00000 0x10000>; + xlnx,count-width = <0x20>; + xlnx,family = "spartan3adsp"; + xlnx,gen0-assert = <0x01>; + xlnx,gen1-assert = <0x01>; + xlnx,one-timer-only = <0x00>; + xlnx,trig0-assert = <0x01>; + xlnx,trig1-assert = <0x01>; + }; + }; +};