Re: Limiting the use of pointer registers

2009-05-24 Thread Michael Meissner
On Sun, May 24, 2009 at 10:23:05PM +1200, Michael Hope wrote: > Hi there. I'm working on a port to an architecture where the pointer > registers X and Y are directly backed by small 128 byte caches. > Changing one of these registers to a different memory row causes a > cache load cycle, so using t

Re: Limiting the use of pointer registers

2009-05-24 Thread Ian Lance Taylor
Michael Hope writes: > How can I prevent the register allocator from using these for anything > but memory access? Unfortunately, you can't. You can make them the last registers the allocator will use, but if you say that they can hold Pmode values then the register allocator will use them. >

Limiting the use of pointer registers

2009-05-24 Thread Michael Hope
Hi there. I'm working on a port to an architecture where the pointer registers X and Y are directly backed by small 128 byte caches. Changing one of these registers to a different memory row causes a cache load cycle, so using them for memory access is fine but using them as general purpose regist