[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-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 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 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 c/106635] New: AARCH64 STUR instruction causes bus error

2022-08-15 Thread xgchenshy at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106635 Bug ID: 106635 Summary: AARCH64 STUR instruction causes bus error Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c