[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with
From: |
Chen Gang S |
Subject: |
Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features |
Date: |
Tue, 17 Feb 2015 06:51:49 +0800 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 2/17/15 00:25, Richard Henderson wrote:
> On 02/16/2015 05:49 AM, Chen Gang S wrote:
>> +#define TILEGX_R_PC 55 /* LR register, pc pointer */
>
> No, register 55 is the link register, not the PC.
> I.e. it is only special in that it receives the
> return address from the JAL instructions.
>
>> +typedef struct CPUTLState {
>> + uint64_t regs[56];
>> + CPU_COMMON
>> +} CPUTLState;
>
> Which means you need another entry here for the PC.
>
>> +static inline void cpu_get_tb_cpu_state(CPUTLState *env, target_ulong *pc,
>> + target_ulong *cs_base, int *flags)
>> +{
>> + *pc = env->regs[TILEGX_R_PC];
>
> And you should not reference the link register here.
>
>
OK, thanks. What you said sound reasonable to me. I shall send patch v3
if no any additiona reply for patch v2 within 3 days (2015-02-20).
And excuse me, I still want to know, is there a real world register as a
PC register for tile (e.g. just like 'rip' for x86_64) which can be used
by software programer? (is it in SPR?)
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
- [Qemu-devel] [PATCH 0/6 v2] tile: Can load elf64 tilegx binary successfully for linux-user, Chen Gang S, 2015/02/16
- [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Chen Gang S, 2015/02/16
- Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Richard Henderson, 2015/02/16
- Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Richard Henderson, 2015/02/16
- Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Chen Gang S, 2015/02/16
- Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Richard Henderson, 2015/02/17
- Re: [Qemu-devel] [PATCH 1/6 v2] target-tilegx: Firstly add to qemu with minimized features, Chen Gang S, 2015/02/17
[Qemu-devel] [PATCH 3/6 v2] linux-user: tilegx: Add target features support within qemu, Chen Gang S, 2015/02/16
[Qemu-devel] [PATCH 4/6 v2] linux-user: Support tilegx architecture in syscall, Chen Gang S, 2015/02/16
[Qemu-devel] [PATCH 5/6 v2] linux-user: Support tilegx architecture in linux-user, Chen Gang S, 2015/02/16
[Qemu-devel] [PATCH 6/6 v2] linux-user/syscall.c: Switch all macros which are not defined in tilegx, Chen Gang S, 2015/02/16