From nobody Thu May 16 17:55:06 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1591187959; cv=none; d=zohomail.com; s=zohoarc; b=UE1z/pyko88Ex5kGB6Uuj8NymAl85DOZwMbfkUPQA1VtQSrYLztdBsHacil06y+J+PNn0uxe6Xr56KCV2rFFRKni7z6sReXQOS2PrcS6UhfQBamFnaaNMpRr8f7LzqsRvGMkSom0vFkII2wE+olm0VvmJc/0TioZGdPacMkJFIk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591187959; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dQpGwQIn8Qp72xpxhIH2uANRxIHLlNTW+u2aj7Hblvg=; b=WUCGJ4+jArQ25286O5NTG7f3YM4ownxAoFYl3uXWjJ+ujCMAnYJ1PZ5Bd3Se+OpKPdQZex3DRLf7ovYSwWB4Op8CIkOC9NYU24NQFlNNpT7Cv25k58MUc7JxSasovT7fGKV/RVQk3ySe+uZ6PiY7T9gxq+fWZp0VUl35zYYQsPY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1591187959888804.4596912159042; Wed, 3 Jun 2020 05:39:19 -0700 (PDT) Received: from localhost ([::1]:35638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgSfu-0006xb-M2 for importer@patchew.org; Wed, 03 Jun 2020 08:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSek-0005er-H5; Wed, 03 Jun 2020 08:38:06 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:46888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgSej-0006OV-39; Wed, 03 Jun 2020 08:38:06 -0400 Received: by mail-wr1-x42b.google.com with SMTP id x6so2148274wrm.13; Wed, 03 Jun 2020 05:38:01 -0700 (PDT) Received: from localhost.localdomain (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id r5sm3370983wrq.0.2020.06.03.05.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 05:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dQpGwQIn8Qp72xpxhIH2uANRxIHLlNTW+u2aj7Hblvg=; b=OVWJx2Kn29vAMe+mCF5zfaQv2AbDd+qpUGfkkaaXIVCzkifWw/rN+W7Vyfe44gv9xn Py3cSYGJlkuxGdmZOHYb5nsbLbdm+3iiiJvcTI9j6+i0kXziW2+vRjAv7JC2ua0oak7o YaQnbSj5RETsb4jGeUtfDzLCzm76xG2ANk4nsE7PKNP6GHpyqG2AAcFmckWpax4SrkPg Bb7gtTr8AOfK5uPLEHIfckgld47OGpQOC8dt4AKMyfaA7XakBgZsolG8HgL5KPfdMexL YL5yTLgGSCL75dKEcZW/SyArl8IymoBms4NyTEiC1k/4Gp/yYJRyInG1hVI5oLTdKH2q DbZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dQpGwQIn8Qp72xpxhIH2uANRxIHLlNTW+u2aj7Hblvg=; b=lp44edT1/D/m0faH/8jsaR/j6h12p6C58kS1aFgXK1qTEAvgiFBSCoz8OOG6+jA6xg SGJlR6/jszz/z4/X1vWQ9jHia3hOXDwh/31VIXGJ4A3nlu7V6dIkR85aognjgB/zB/bZ 7ZBulaXd1Ubsddm/m4jNZBYJ1cefgQyw5jlFk2ooz3eER3wYP7NrP39JDsL6r5xlnZOF mFA74nL3JnSq1/2sFjqJ5RxH30OuI3LYIP3hDUhe53AAKa1R6EkZqigBpqSlC5Bs/nTK OwzGys3uKwQzu/bWGbC1dT1mTH72Ng2uFoWRCy/E6Fz8PHMW8iisAXvUaIFHKQ/6+Fdn hsFQ== X-Gm-Message-State: AOAM530g80KvCzvmTh8Za1NGq/k+XL2HfehMyoTbNnqmYXMcwREfHwck 7KwC5mUKeF7FcCtx3rWWnH6jPGor X-Google-Smtp-Source: ABdhPJwffy1u/Qr3EXdVZVUpSlRZ1FLhRmUoEkF4YGDRSN2RqYRhixsVticQIuvJb2c6gJpMpO0jgg== X-Received: by 2002:a5d:4a04:: with SMTP id m4mr33729076wrq.153.1591187880043; Wed, 03 Jun 2020 05:38:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/3] target/unicore32: Remove unused headers Date: Wed, 3 Jun 2020 14:37:52 +0200 Message-Id: <20200603123754.19059-2-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200603123754.19059-1-f4bug@amsat.org> References: <20200603123754.19059-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42b.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.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Thomas Huth , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Guan Xuetao , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/unicore32/helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index 7d538e2144..53292ae311 100644 --- a/target/unicore32/helper.c +++ b/target/unicore32/helper.c @@ -12,9 +12,7 @@ #include "qemu/osdep.h" #include "cpu.h" #include "exec/exec-all.h" -#include "exec/gdbstub.h" #include "exec/helper-proto.h" -#include "qemu/host-utils.h" #ifndef CONFIG_USER_ONLY #include "ui/console.h" #endif --=20 2.21.3 From nobody Thu May 16 17:55:06 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1591187960; cv=none; d=zohomail.com; s=zohoarc; b=G39Ti//n02igrAQN7AOLPr5Y3GADHIBJCSf0D8eLB4ttDzZMnm0caeQTyIB6Up03yBi2HoGJcH/Nap5shirmZd3sG1bsHnImOUgHY7fcgIhFhynQUC4w/GlCbMJvqVRxVoZbQKXv1naYmbBFwuEfP7yZZBQCrajbZYVqkxbvHgI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591187960; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dghhn3CcrA48NqWRKIW/ElguQkiStlFvKybxs/jclLk=; b=h8iIHNhLAEiddG/zpEs/F1HJLRHK8E8LZfmq/FCgsCeSvzkYtDbqhAGJ3NPLLo9vj8ZjKemYXDAzpnBfWiZKP21KZrJu/po44jz9qEuRNVx/Oq4RTPLRs5x96PTQzLUrst0hAmuNkeCFNDUoNbVONSNp7A18mJa+437w6iMxLCc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1591187959998292.92075933302124; Wed, 3 Jun 2020 05:39:19 -0700 (PDT) Received: from localhost ([::1]:35640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgSfu-0006xi-Pg for importer@patchew.org; Wed, 03 Jun 2020 08:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSej-0005eB-Um; Wed, 03 Jun 2020 08:38:05 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgSej-0006Od-3z; Wed, 03 Jun 2020 08:38:05 -0400 Received: by mail-wr1-x441.google.com with SMTP id e1so2197099wrt.5; Wed, 03 Jun 2020 05:38:02 -0700 (PDT) Received: from localhost.localdomain (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id r5sm3370983wrq.0.2020.06.03.05.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 05:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dghhn3CcrA48NqWRKIW/ElguQkiStlFvKybxs/jclLk=; b=vIcoBpgRnNYQXxduYDU/yigJ9tzHLJzZ/hLoGuohdmEGk+EdhMJDm1oQXsu1imEcu3 N7xNlVHuUtsqHlOsRpxhZ5hKr0MOcwTBS+ABkpVOiWu/fHzfT9jgJyv+OYCU+YsrWMDG CeoJyP2ooACTiq7B1yrB8mIOMrljJhgSidngqliKelLuZ1J4tr+QZE4GSWOfuRKIolh/ hBWRjEwGO6fVwhPQBebmyZl6ctNhxzmCZy/VOAgxblljsXrcyXpVPy1p9EAbRY8FFMLB hjJlBoeZMhMPfjF5NlE6JwHaObRn2Gy6gNpi65YPNXJ8H9iTRC1CbxtoJhQ/uembp7xm dFWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dghhn3CcrA48NqWRKIW/ElguQkiStlFvKybxs/jclLk=; b=NDKwZsZBDSf7ewB7/raMMHG77CelbU7gQrYLhnffhbmw0qjBl9G82/00Ujg1vFziwX 6DhERl1ADLWPkNnHHBn0DpeBLLwwzlcPKVfQFOztXIx1dKx8c7yf+9Eiqz4yaH59gv3J HEf0liWyMU4Yu+OYlkXMbEqoQKhMwcOYu2k+UVpZMKO903zh7aMXcs6rn+KGmCf9933y CU/PvfNsrB3BCsTmtrdVcE0yTY4m6cil7zlREs4V+hp/X+Fxet7LWKQ/1jRmHgdaQ/UZ yrxs/Aapgng41mDBkBHgXmVCdzIl2D44EDyw5sIUkGJwtmlHSdjFoURIfD+AeGF1hKWq z87A== X-Gm-Message-State: AOAM532kQQ9R++yEtNOnLamAchnMgJSKRKB1j9ExrZICWD0dOJhCqBVO wnjWZoewSH2CaS1XomczUt4F5gCO X-Google-Smtp-Source: ABdhPJznNv8XI6qbX1kfPUmlPHDsXizSsqgyf0wSEvFABUvhiILRLw2juVeEUDWZ7KV/rBhIjC4hDA== X-Received: by 2002:a5d:6150:: with SMTP id y16mr33318660wrt.219.1591187881371; Wed, 03 Jun 2020 05:38:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/3] target/unicore32: Replace DPRINTF() by qemu_log_mask(GUEST_ERROR) Date: Wed, 3 Jun 2020 14:37:53 +0200 Message-Id: <20200603123754.19059-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200603123754.19059-1-f4bug@amsat.org> References: <20200603123754.19059-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x441.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.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Thomas Huth , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Guan Xuetao , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Replace disabled DPRINTF() by qemu_log_mask(GUEST_ERROR). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/unicore32/helper.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index 53292ae311..00371a7da6 100644 --- a/target/unicore32/helper.c +++ b/target/unicore32/helper.c @@ -10,6 +10,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" @@ -106,8 +107,9 @@ void helper_cp0_set(CPUUniCore32State *env, uint32_t va= l, uint32_t creg, } return; unrecognized: - DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n", - creg, cop); + qemu_log_mask(LOG_GUEST_ERROR, + "Wrong register (%d) or wrong operation (%d) in cp0_set!= \n", + creg, cop); } =20 uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_t creg, uint32_t co= p) @@ -153,8 +155,9 @@ uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_= t creg, uint32_t cop) } break; } - DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n", - creg, cop); + qemu_log_mask(LOG_GUEST_ERROR, + "Wrong register (%d) or wrong operation (%d) in cp0_set!= \n", + creg, cop); return 0; } =20 --=20 2.21.3 From nobody Thu May 16 17:55:06 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1591188038; cv=none; d=zohomail.com; s=zohoarc; b=H7jpjOXeOvn1CSWHl8l8mE7XfwDvamkAZ9TqiQEHR9DJEkSUNHG2OBEJb6tZYCyK0CeuwdacdtitKFH1yCY+m9kRtnUpcoLFheqEVhzHwFf/4KMRfzMBG8VK/AnI1lW9yCJHgul6bQx5IwFdmXs97u7nqoxqVVnPdaSSvmWIGoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591188038; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wVQrGfjTa1sxgMd1d+bkjIGbptx0TWESvdgxR7VrhSM=; b=eMbb4mlFnpjrgquE8ah+yoiIc9LODa1rLzhJ1pIzYLdCNMDxBJM2uMu8NgKCzIqkIFRITQDBG44Y1Jin8GZHMJAP3b2f79uaSXD92bQB9OfE7y4PnHQUsOxW6nku/uFoc13gk5GZ+KS3Dg3ksw6V1rJYN7WJgUZRus06Wh183bg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1591188038581970.0680304685499; Wed, 3 Jun 2020 05:40:38 -0700 (PDT) Received: from localhost ([::1]:40822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgShB-0000mp-CJ for importer@patchew.org; Wed, 03 Jun 2020 08:40:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSek-0005en-Gg; Wed, 03 Jun 2020 08:38:06 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:41730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgSej-0006Oj-KN; Wed, 03 Jun 2020 08:38:06 -0400 Received: by mail-wr1-x443.google.com with SMTP id j10so2180598wrw.8; Wed, 03 Jun 2020 05:38:04 -0700 (PDT) Received: from localhost.localdomain (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id r5sm3370983wrq.0.2020.06.03.05.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 05:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wVQrGfjTa1sxgMd1d+bkjIGbptx0TWESvdgxR7VrhSM=; b=ckfr5LgoZfi0o7wuYngz3NrYLphDXGCvOGG9f6Qa+RGXCDUTLi7SuDfE+loKFqkGqr cptkc061vEqz5Xyc8UFrh8DSrOtW+zV+Ejp+wmVTqvOBD6+2XqV/pKd7EeFsl7NAcJ1e 5YIkCM6Q6eQ/5p5sQbkP3mmBox7WjbBj+9ZwU41+vC1pqTW6y2DDu9cAjaPnXH7U4eP+ DAiJWeuobOAKD+o/KwQXEhBIsNcnuJmMHhhuNOzlVdUsPpNIwMsPI4HghPlgzQfY9JzG iy3oCS7RbdYucjCvb3U2hyiNCdZHSPNCYwpm70tiSmAUZCcd9rOg1/7y7pAEqWECBJoS lr1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=wVQrGfjTa1sxgMd1d+bkjIGbptx0TWESvdgxR7VrhSM=; b=XzmK1ogf8Eic5iKvUn5+rIS0TlCHHSAiOn82aLnmU9it6zBs4yBRIYWLcCQsiVbwxi PcNBrHJapSNCmA2GkOFqDD2AcOAdhzbOu7UuRBq6lWLsKRuP6EBCojo6TUXrV4Jn9u/x Hbq1x4nEcgjqVY62z3BDG2iDgrWQ/FwEQ09xex/XvvQvEutaK+4ytHCHaMwZIOuNO+4p 2USBdJI3UnA0jnaS3O7+FPyGL6YCw7GGWot4c+le6LPBqg6FfMyMy2EjCTf8ws7e8Goh CjubviOOYsaxHC9OYM1bH1Araff+ozQIkQVD+tTcyspP/E45TX8yvgVqYaqMPKh3uo43 bfEA== X-Gm-Message-State: AOAM533i8rvGW67a++JiWRphX890nW36hBoDgLPFlHjNbxLrtWC/mWdS 8++PvTM3HyvElKC1QKui2FeeZOCW X-Google-Smtp-Source: ABdhPJzHGMjbe6t67I38yLD4Lk2j62mJjqkuhcOmj2OKn0A2RfaKPt0Kx/dUAz2+1lYMR+epF/XWRQ== X-Received: by 2002:adf:dd06:: with SMTP id a6mr32001218wrm.142.1591187882758; Wed, 03 Jun 2020 05:38:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/3] target/unicore32: Prefer qemu_semihosting_log_out() over curses Date: Wed, 3 Jun 2020 14:37:54 +0200 Message-Id: <20200603123754.19059-4-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200603123754.19059-1-f4bug@amsat.org> References: <20200603123754.19059-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::443; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x443.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.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: Thomas Huth , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Guan Xuetao , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Use the common API for semihosting logging. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- default-configs/unicore32-softmmu.mak | 1 + target/unicore32/helper.c | 57 +++------------------------ 2 files changed, 6 insertions(+), 52 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak b/default-configs/unicor= e32-softmmu.mak index 0bfce48c6d..899288e3d7 100644 --- a/default-configs/unicore32-softmmu.mak +++ b/default-configs/unicore32-softmmu.mak @@ -3,3 +3,4 @@ # Boards: # CONFIG_PUV3=3Dy +CONFIG_SEMIHOSTING=3Dy diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index 00371a7da6..54c26871fe 100644 --- a/target/unicore32/helper.c +++ b/target/unicore32/helper.c @@ -14,9 +14,7 @@ #include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" -#ifndef CONFIG_USER_ONLY -#include "ui/console.h" -#endif +#include "hw/semihosting/console.h" =20 #undef DEBUG_UC32 =20 @@ -161,58 +159,13 @@ uint32_t helper_cp0_get(CPUUniCore32State *env, uint3= 2_t creg, uint32_t cop) return 0; } =20 -#ifdef CONFIG_CURSES - -/* KEY_EVENT is defined in wincon.h and in curses.h. Avoid redefinition. */ -#undef KEY_EVENT -#include -#undef KEY_EVENT - -/* - * FIXME: - * 1. curses windows will be blank when switching back - * 2. backspace is not handled yet - */ -static void putc_on_screen(unsigned char ch) +void helper_cp1_putc(target_ulong regval) { - static WINDOW *localwin; - static int init; + const char c =3D regval; =20 - if (!init) { - /* Assume 80 * 30 screen to minimize the implementation */ - localwin =3D newwin(30, 80, 0, 0); - scrollok(localwin, TRUE); - init =3D TRUE; - } - - if (isprint(ch)) { - wprintw(localwin, "%c", ch); - } else { - switch (ch) { - case '\n': - wprintw(localwin, "%c", ch); - break; - case '\r': - /* If '\r' is put before '\n', the curses window will destroy = the - * last print line. And meanwhile, '\n' implifies '\r' inside.= */ - break; - default: /* Not handled, so just print it hex code */ - wprintw(localwin, "-- 0x%x --", ch); - } - } - - wrefresh(localwin); + qemu_semihosting_log_out(&c, sizeof(c)); } -#else -#define putc_on_screen(c) do { } while (0) -#endif - -void helper_cp1_putc(target_ulong x) -{ - putc_on_screen((unsigned char)x); /* Output to screen */ - DPRINTF("%c", x); /* Output to stdout */ -} -#endif +#endif /* !CONFIG_USER_ONLY */ =20 bool uc32_cpu_exec_interrupt(CPUState *cs, int interrupt_request) { --=20 2.21.3