AS assembles MRS x, CPSR as MRS pc, CPSR
nick at dsvr.net
Sat Aug 17 03:56:30 PDT 2002
Timothy Baldwin wrote:
> AS assembles MRS x, CPSR as MRS pc, CPSR, here is patch to fix it:
> diff -u gccsdk-old/riscos-aof/as/m_cpuctrl.c gccsdk2/riscos-aof/as/m_cpuctrl.c
> --- gccsdk-old/riscos-aof/as/m_cpuctrl.c Wed Jul 31 19:52:44 2002
> +++ gccsdk2/riscos-aof/as/m_cpuctrl.c Fri Aug 16 09:27:41 2002
> @@ -401,7 +401,7 @@
> m_mrs (WORD cc)
> cpuWarn (ARM6);
> - cc |= getCpuReg () << 12 | 0x0100F000;
> + cc |= getCpuReg () << 12 | 0x01000000;
> skipblanks ();
> if (inputLook () == ',')
> It's seems AS has forked somewhat, as I reported this bug to Darren Salt a few
> years ago, which he fixed quickly.
We tried to stay in sync until early 2000, but it was too difficult when
I created the GCCSDK tree because I cleaned up the formatting with `indent'.
Patch committed. Thanks.
Development Manager, Designer Servers Ltd. http://www.dsvr.co.uk
More information about the gcc