From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsCjl-0004ia-Af for qemu-devel@nongnu.org; Wed, 04 Jun 2014 11:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsCjc-00020S-AD for qemu-devel@nongnu.org; Wed, 04 Jun 2014 11:04:21 -0400 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:58821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsCjc-0001yw-3o for qemu-devel@nongnu.org; Wed, 04 Jun 2014 11:04:12 -0400 Received: by mail-pd0-f173.google.com with SMTP id v10so6170035pde.18 for ; Wed, 04 Jun 2014 08:04:11 -0700 (PDT) Date: Thu, 5 Jun 2014 01:03:42 +1000 From: "Edgar E. Iglesias" Message-ID: <20140604150342.GR18802@zapo.iiNet> References: <1401434911-26992-1-git-send-email-edgar.iglesias@gmail.com> <1401434911-26992-14-git-send-email-edgar.iglesias@gmail.com> <87d2eqs2ay.fsf@linaro.org> <20140604070157.GG3378@toto> <8761khrv7o.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8761khrv7o.fsf@linaro.org> Subject: Re: [Qemu-devel] [PATCH v1 13/16] target-arm: A64: Emulate the HVC insn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?utf-8?B?QmVubu+/vWU=?= Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, rob.herring@linaro.org, aggelerf@ethz.ch, qemu-devel@nongnu.org, agraf@suse.de, blauwirbel@gmail.com, john.williams@xilinx.com, greg.bellows@linaro.org, pbonzini@redhat.com, christoffer.dall@linaro.org, rth@twiddle.net On Wed, Jun 04, 2014 at 08:26:51AM +0100, Alex Benn�e wrote: > > Edgar E. Iglesias writes: > > > On Tue, Jun 03, 2014 at 11:41:25AM +0100, Alex Benn?e wrote: > >> > >> Edgar E. Iglesias writes: > >> > static inline void arm_log_exception(int idx) > >> > @@ -204,6 +205,11 @@ static inline uint32_t syn_aa64_svc(uint32_t imm16) > >> > return (EC_AA64_SVC << ARM_EL_EC_SHIFT) | ARM_EL_IL | (imm16 & 0xffff); > >> > } > >> > > >> > +static inline uint32_t syn_aa64_hvc(uint32_t imm16) > >> > +{ > >> > + return (EC_AA64_HVC << ARM_EL_EC_SHIFT) | ARM_EL_IL | (imm16 & 0xffff); > >> > +} > >> > >> The mask seems superfluous (as it is for arm_log_exception) > > > > Sorry, can you clarify what you mean here? Are you refering to the imm16? > > Yes the imm16. It's the result of an extract32(..,..,16) so I can't see > how it wouldn't already be correctly masked. Right, so my first version here had a uint16_t imm16, but I changed it to keep it consistent with the other functions. I'm happy to change things to match their use with additional patches. I'll do something for v2.