From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWV3H-0004mP-Lv for qemu-devel@nongnu.org; Tue, 23 Sep 2014 14:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWV37-0001vZ-4z for qemu-devel@nongnu.org; Tue, 23 Sep 2014 14:43:03 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:55066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWV36-0001uO-VL for qemu-devel@nongnu.org; Tue, 23 Sep 2014 14:42:53 -0400 Received: by mail-wg0-f42.google.com with SMTP id a1so4688935wgh.13 for ; Tue, 23 Sep 2014 11:42:47 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5421BF23.9020801@redhat.com> Date: Tue, 23 Sep 2014 20:42:43 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1411419461-24390-1-git-send-email-rth@twiddle.net> <1411419461-24390-8-git-send-email-rth@twiddle.net> <5420A07E.9080600@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 07/11] tcg: Compress TCGLabelQemuLdst List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Richard Henderson Il 23/09/2014 19:48, Peter Maydell ha scritto: > On 22 September 2014 23:19, Paolo Bonzini wrote: >> Il 22/09/2014 22:57, Richard Henderson ha scritto: >>> +QEMU_BUILD_BUG_ON(TCG_TARGET_NB_REGS > 32); >>> +QEMU_BUILD_BUG_ON(NB_MMU_MODES > 8); >>> + >>> typedef struct TCGLabelQemuLdst { >>> - bool is_ld:1; /* qemu_ld: true, qemu_st: false */ >>> - TCGMemOp opc:4; >>> - TCGReg addrlo_reg; /* reg index for low word of guest virtual addr */ >>> - TCGReg addrhi_reg; /* reg index for high word of guest virtual addr */ >>> - TCGReg datalo_reg; /* reg index for low word to be loaded or stored */ >>> - TCGReg datahi_reg; /* reg index for high word to be loaded or stored */ >>> - int mem_index; /* soft MMU memory index */ >>> + TCGMemOp opc : 4; >>> + bool is_ld : 1; /* qemu_ld: true, qemu_st: false */ >>> + TCGReg addrlo_reg : 5; /* reg index for low word of guest virtual addr */ >>> + TCGReg addrhi_reg : 5; /* reg index for high word of guest virtual addr */ >>> + TCGReg datalo_reg : 5; /* reg index for low word to be loaded or stored */ >>> + TCGReg datahi_reg : 5; /* reg index for high word to be loaded or stored */ >>> + unsigned mem_index : 3; /* soft MMU memory index */ >>> + /* 4 bits unused in 32-bit word */ >> >> Why? Are there more than 10 or so loads in the typical tb? > > For clarity, does this comment amount to a request for > me not to apply this pullreq? No, it just caught my eye because it'll conflict with the PPC patches that have NB_MMU_MODES == 12. Paolo