[Pixman] [PATCH 2/3] build: use '-mloongson-mmi' for Loongson MMI.

YunQiang Su wzssyqa at gmail.com
Tue Feb 11 10:48:11 UTC 2020


Shiyou Yin <yinshiyou-hf at loongson.cn> 于2020年2月11日周二 下午6:29写道:
>
>
> >-----Original Message-----
> >From: YunQiang Su [mailto:wzssyqa at gmail.com]
> >Sent: Tuesday, February 11, 2020 5:26 PM
> >To: Yin Shiyou
> >Cc: pixman at lists.freedesktop.org
> >Subject: Re: [Pixman] [PATCH 2/3] build: use '-mloongson-mmi' for Loongson MMI.
> >
> >Yin Shiyou <yinshiyou-hf at loongson.cn> 于2020年2月11日周二 下午3:59写道:
> >>
> >> It's suggested to use '-mloongson-mmi' to enable MMI.
> >> Use '-march=loongson2f' will lead a link error in new platform
> >> while config check and then MMI will be disabled.
> >> ---
> >>  configure.ac | 2 +-
> >>  meson.build  | 2 +-
> >>  2 files changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/configure.ac b/configure.ac
> >> index 1ca3974..fd7df47 100644
> >> --- a/configure.ac
> >> +++ b/configure.ac
> >> @@ -273,7 +273,7 @@ dnl
> >===========================================================================
> >>  dnl Check for Loongson Multimedia Instructions
> >>
> >>  if test "x$LS_CFLAGS" = "x" ; then
> >> -    LS_CFLAGS="-march=loongson2f"
> >> +    LS_CFLAGS="-mloongson-mmi"
> >>  fi
> >>

somebody told me that the opcode of MMI on 2F and 3A is different.
So which set of opcode will -mloongson-mmi generate?

> >
> >As I know, somebody are still using 2F, such as Gentoo.
> >This change will break these distributions.
> >
> >Keep compatible please.
> >
> Thank you for you reminder. Are you sure this patch will cause break on 2F?
> In my opinion, use these FLAGS is aim to compile MMI instructions.
> From this point, '-mloongson-mmi' may be more appropriate..
>
>


-- 
YunQiang Su


More information about the Pixman mailing list