Re: e500 core lacks lswi, lswx, stswi, and stswx instructions.
Matt Thomas <[email protected]> Mon, 19 Jan 2015 23:13:01 -0800
| Newsgroups | gmane.os.netbsd.ports.powerpc |
|---|---|
| Message-ID | <[email protected]> |
> On Jan 19, 2015, at 4:46 PM, NONAKA Kimihiro <[email protected]> wrote: > > 2015-01-19 23:34 GMT+09:00 Matt Thomas <[email protected]>: > >>>> Do we need emulation of those instructions? >>>> Any ideas? >>> >>> Maybe you can switch gcc into e500 mode? >>> Does it work with -mcpu=8540 (e500v1) or -mcpu=8548 (e500v2) ? >> >> Easier just to add -mno-string so GCC doesn't use them. > > gcc -Os -mno-string is not generated those instructions, too. > > I'd like to add "-mno-string" to compile option for evbppc. > Do we need to add it only where "-Os" are specified Makefile? > Or do we need to add it src/share/mk/*.mk? I fixed rs6000.c to not enable string instructions for NetBSD with -Os.