[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-17 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #12 from Xiaoguang --- (In reply to Richard Earnshaw from comment #11) > (In reply to Xiaoguang from comment #9) > > Yeah, I also find such description, my memory type is uncachable normal > > memory, but not device memory > > I use

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-17 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #11 from Richard Earnshaw --- (In reply to Xiaoguang from comment #9) > Yeah, I also find such description, my memory type is uncachable normal > memory, but not device memory > I use mmap to get the virtual address with an O_SYNC in

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #10 from Xiaoguang --- (In reply to Xiaoguang from comment #9) > (In reply to Andrew Pinski from comment #8) > > In ARM Armv8, for A-profile architecture (ARM DDI 0487G.b (ID072021)): > > > > From section B2.5.2 Alignment of data a

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #9 from Xiaoguang --- (In reply to Andrew Pinski from comment #8) > In ARM Armv8, for A-profile architecture (ARM DDI 0487G.b (ID072021)): > > From section B2.5.2 Alignment of data accesses: > > An unaligned access to any type of

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #8 from Andrew Pinski --- In ARM Armv8, for A-profile architecture (ARM DDI 0487G.b (ID072021)): >From section B2.5.2 Alignment of data accesses: An unaligned access to any type of Device memory causes an Alignment fault. Unalign

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #7 from Andrew Pinski --- (In reply to Xiaoguang from comment #6) > (In reply to Richard Earnshaw from comment #5) > > Your original code contains (after stripping out the volatile): > > u32 temp_32 = (u32)status_data_base_addr;

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #6 from Xiaoguang --- (In reply to Richard Earnshaw from comment #5) > Your original code contains (after stripping out the volatile): > u32 temp_32 = (u32)status_data_base_addr; > *dst++ = temp_32; > data_length++; > >

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 Richard Earnshaw changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #4 from Xiaoguang --- (In reply to Xiaoguang from comment #2) > (In reply to Richard Biener from comment #1) > > Can you provide preprocessed source of the whole translation unit so the > > testcase is compilable? > > Sure, please s

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #3 from Xiaoguang --- (In reply to Richard Biener from comment #1) > Can you provide preprocessed source of the whole translation unit so the > testcase is compilable? please see below code: void CWLCollectReadRegData(u32* dst,u16 r

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 --- Comment #2 from Xiaoguang --- (In reply to Richard Biener from comment #1) > Can you provide preprocessed source of the whole translation unit so the > testcase is compilable? Sure, please see below complete code. void CWLCollectReadRegDat

[Bug target/106635] AARCH64 STUR instruction causes bus error

2022-08-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 Richard Biener changed: What|Removed |Added Last reconfirmed||2022-08-16 Ever confirmed|0