Message ID | 20180122034217.19593-38-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp953955ljf; Sun, 21 Jan 2018 20:20:35 -0800 (PST) X-Google-Smtp-Source: AH8x226eWKX5hbBsOfqRG3BOA/9intwR8tPw7aH+hJA/fGdKP27Z3RK0FFW5RElR2JsITb0wpSw/ X-Received: by 10.37.202.137 with SMTP id a131mr6306604ybg.198.1516594835703; Sun, 21 Jan 2018 20:20:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516594835; cv=none; d=google.com; s=arc-20160816; b=kW92CxNIguMawQNoJZdlO6nicBAJlW4L1/EZjodiQLQ7lBEAd96x2FGXDw0JNV3Wn5 KD5g+raaTh5JFH31iAtUmz6dNYpQv880hsAmvEK0FRqlbHvHK0PpY79Hj/ieyqS/YSos jpnU4kRyxQgCGN9TQE2cTNSVDJErmQ+D2JF0l3QvOj4F2XyQfy0KQ8HW4wcL0Jqxk7Jr TsNvP5e4BEjNGW+1ZEqCl6pHXpfzs/RHTpJgbwF9VKITMBb1fomiiHzQXU086/+/JkeQ vU9w8Q4rM33vGqpZaUPBnZwW/ovyCs8CgWGi0I1RHFx2ec2ldD3ZhYg1ZWM4t8EgglkR ZIFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=SKNm+ebBE43/fKC6IkH85JW/TPVSxjUx6/2Ko5bVkkk=; b=XrOVZLJMUjeJ3SqHLyWMJ+7BpbqWokeMZFs1khyCTsUloXzrXLkG4ERosvYHTh44nQ c8O7DHdq0KmNAGWbFAxEbyjDhkeErzorNSS6GN/JiL79zr5TAmoHgp9KZC1nxRLC3jfu u/nz9tkrmiHq7pqET1sNubJc0iHRVq8Mmfxu0mO0gG8SnTfyX8V9WJWtl8ZJZem9F92E YHO1WiQEyhsHftoFp1J1i/DmYHW5T90QdIYfyJAnS0L6R9S7a46xWbip2jCJ46JJfdqV neDia+PJaK3FcJxkrlTUpRsiHiPY2MTLfOFUM0yrmMUcYH/EqonT+fNVWMLo2Oq6IT7l n40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N88vU21e; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n4si3449125ywc.508.2018.01.21.20.20.35 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 21 Jan 2018 20:20:35 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N88vU21e; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1edTb1-0000iS-4r for patch@linaro.org; Sun, 21 Jan 2018 23:20:35 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1edT0u-00061u-Fz for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1edT0t-0006qO-Kz for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:16 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:45839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1edT0t-0006q8-FC for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:15 -0500 Received: by mail-pf0-x241.google.com with SMTP id a88so6067266pfe.12 for <qemu-devel@nongnu.org>; Sun, 21 Jan 2018 19:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SKNm+ebBE43/fKC6IkH85JW/TPVSxjUx6/2Ko5bVkkk=; b=N88vU21eDoPIXScS0oX77uI6Yp1xOilBg9Kcf1qywJL0UfLIXIIFij8IQ1Vp+t9wuI JWdwl9THfelqPOcq2bHXzmYlMv74JExaTsd9zjXOYkSr9phs8n+onqD/SoKh8e2NJchD /duJBuDzcvknENpCG0i3eripIhALrpMzLqOIo= 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; bh=SKNm+ebBE43/fKC6IkH85JW/TPVSxjUx6/2Ko5bVkkk=; b=NRga5j/fRNQ3CkXvuUWw/oQlsBJOWzVV7YhhRLE2Xv2acyyAfg3mTQv+Y9NAJYfHOx lo8YWH0gpNxt/1NQtPkL8dd5iSPXRITBhWUQzsxcPjjzWTMB9B20fl7MW39npmbA3r4O dXvb2e2/fxzzB0PaIgnYaOiz5MpiL2mLzHvZczx9sLU3YT+4xgtwrPCOuSQS1Mfo9GGn XgCfr3vi2sluw+OMWQ30/jXsIFq1WdfhDGKSvfXreqUSg/10z6yhmoBwIV5Bk79B0tiv ZTgTOazioi8N0uZON4UCjU+c0FdlNHQiAK5H4V4VyDPwiw5IfRzSWWrlWu5MRUkPqTDP kxvQ== X-Gm-Message-State: AKwxytf41sdSEUsFtUsDlkyqsTwC8cM1JvwcfPtl0NjSO6/xa8zIz9CL tDg5merlhN9WS+rK2J7RTpGIpPxOqx0= X-Received: by 2002:a17:902:20e8:: with SMTP id v37-v6mr2702667plg.66.1516592594188; Sun, 21 Jan 2018 19:43:14 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id z125sm182023pfz.27.2018.01.21.19.43.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jan 2018 19:43:13 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Sun, 21 Jan 2018 19:42:11 -0800 Message-Id: <20180122034217.19593-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180122034217.19593-1-richard.henderson@linaro.org> References: <20180122034217.19593-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 Subject: [Qemu-devel] [PULL 37/43] target/hppa: Implement LDSID for system mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, Helge Deller <deller@gmx.de> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Add hppa-softmmu
|
expand
|
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 965641f380..76ed7e1ad4 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -2200,8 +2200,20 @@ static DisasJumpType trans_ldsid(DisasContext *ctx, uint32_t insn, unsigned rt = extract32(insn, 0, 5); TCGv_reg dest = dest_gpr(ctx, rt); - /* Since we don't implement space registers, this returns zero. */ +#ifdef CONFIG_USER_ONLY + /* We don't implement space registers in user mode. */ tcg_gen_movi_reg(dest, 0); +#else + unsigned rb = extract32(insn, 21, 5); + unsigned sp = extract32(insn, 14, 2); + TCGv_i64 t0 = tcg_temp_new_i64(); + + tcg_gen_mov_i64(t0, space_select(ctx, sp, load_gpr(ctx, rb))); + tcg_gen_shri_i64(t0, t0, 32); + tcg_gen_trunc_i64_reg(dest, t0); + + tcg_temp_free_i64(t0); +#endif save_gpr(ctx, rt, dest); cond_free(&ctx->null_cond);