qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 04/20] target-mips: add 8, 16, 32, 64 bits load


From: Leon Alrae
Subject: Re: [Qemu-devel] [PATCH 04/20] target-mips: add 8, 16, 32, 64 bits load and store
Date: Fri, 10 Oct 2014 10:26:29 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 14/07/2014 10:55, Yongbok Kim wrote:
> add 8, 16, 32, 64 bits load and store
> 
> Signed-off-by: Yongbok Kim <address@hidden>
> ---
>  target-mips/cpu.h |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/target-mips/cpu.h b/target-mips/cpu.h
> index 68ce383..51d1c88 100644
> --- a/target-mips/cpu.h
> +++ b/target-mips/cpu.h
> @@ -896,6 +896,10 @@ HELPER_LD(lw, ldl, int32_t)
>  #ifdef TARGET_MIPS64
>  HELPER_LD(ld, ldq, int64_t)
>  #endif
> +HELPER_LD(ld8, ldub, uint8_t)
> +HELPER_LD(ld16, lduw, uint16_t)
> +HELPER_LD(ld32, ldl, int32_t)
> +HELPER_LD(ld64, ldq, int64_t)
>  #undef HELPER_LD
>  
>  #if defined(CONFIG_USER_ONLY)
> @@ -929,6 +933,10 @@ HELPER_ST(sw, stl, uint32_t)
>  #ifdef TARGET_MIPS64
>  HELPER_ST(sd, stq, uint64_t)
>  #endif
> +HELPER_ST(st8, stb, uint8_t)
> +HELPER_ST(st16, stw, uint16_t)
> +HELPER_ST(st32, stl, int32_t)
> +HELPER_ST(st64, stq, int64_t)
>  #undef HELPER_ST
>  
>  #endif /* !defined (__MIPS_CPU_H__) */
> 

do_ld8, do_ld32 and do_ld64 are duplications of existing do_lbu, do_lw
and do_ld. Similarily with do_st*.

Leon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]