Received: from eggs.gnu.org ([2001:4830:134:3::10]:40195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzt5X-0004Jy-5U for qemu-devel@nongnu.org; Tue, 02 Jun 2015 16:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzt5T-0005HX-TX for qemu-devel@nongnu.org; Tue, 02 Jun 2015 16:47:07 -0400 Received: from blu004-omc1s5.hotmail.com ([65.55.116.16]:52716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzt5T-0005HT-Pp for qemu-devel@nongnu.org; Tue, 02 Jun 2015 16:47:03 -0400 Message-ID: Date: Wed, 3 Jun 2015 04:47:40 +0800 From: Chen Gang MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/10 v11] target-tilegx: Add cpu basic features for linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , qemu-devel , Chris Metcalf , "walt@tilera.com" , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , "rth@twiddle.net" Firstly, thank you very much for your valuable work for all patches. On 6/3/15 01:51, Peter Maydell wrote: > On 30 May 2015 at 22:15, Chen Gang wrote: >> + >> +#define TILEGX_IS_ERRNO(ret) \ >> + ((ret) > 0xfffffffffffff000ULL) /* errno is 0 -- 4096 */ > > TILEGX_IS_ERRNO is specific to the Linux syscall ABI; it > belongs in linux-user/ somewhere, not here. > OK, thanks. I shall move it to linux-user/tilegx/syscall.h. >> +#define ENV_GET_CPU(e) CPU(tilegx_env_get_cpu(e)) >> + >> +#define ENV_OFFSET offsetof(TileGXCPU, env) >> + >> +/* TILE-Gx memory attributes */ >> +#define TARGET_PAGE_BITS 16 /* TILE-Gx uses 64KB page size */ >> +#define MMAP_SHIFT TARGET_PAGE_BITS > > MMAP_SHIFT is linux ABI specific and doesn't belong in this file. > OK, thanks. I shall move it to linux-user/tilegx/syscall.h (although all the other targets still put it in "target-*/cpu.h"). >> +#define TARGET_PHYS_ADDR_SPACE_BITS 42 /* It has 42 bit physical addresses */ >> +#define TARGET_VIRT_ADDR_SPACE_BITS 64 /* It has 64 bit virtual addresses */ > > These comments are stating the obvious and can be deleted. > OK, thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed