Re: Volatile Memory accesses in Branch Delay Slots

2017-07-25 Thread Jeff Law
On 07/25/2017 06:32 AM, Oleg Endo wrote: > On Tue, 2017-07-25 at 10:47 +0200, Jakob Wenzel wrote: >> >> jr's delay slot is not filled. However, if the declaration of a is >> changed to `extern int a`, the delay slot is filled with the sw. >> >> The function responsible for this behavior seems to

Re: Volatile Memory accesses in Branch Delay Slots

2017-07-25 Thread Oleg Endo
On Tue, 2017-07-25 at 10:47 +0200, Jakob Wenzel wrote: >  > jr's delay slot is not filled. However, if the declaration of a is  > changed to `extern int a`, the delay slot is filled with the sw. > > The function responsible for this behavior seems to be  > resource_conflicts_p in reorg.c. Sadly, I

Re: Volatile Memory accesses in Branch Delay Slots

2017-07-25 Thread Eric Botcazou
> The function responsible for this behavior seems to be > resource_conflicts_p in reorg.c. Sadly, I could not find any comments > explaining why volatile accesses cannot be put into delay slots. > > What is the reason for this behavior? I am unable to think of any > situation where allowing volat