Skip to content

Commit ea4d211

Browse files
FlyGoatAlexPeshkoff
authored andcommitted
Select RISC_ALIGNMENT for all MIPS processors
Though some of MIPS hardware do have unaligned memory access support, and kernel will emulation unaligned memory access on those don't. It is still better to select RISC_ALIGNMENT for safety and better performence. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
1 parent 2284632 commit ea4d211

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,17 @@
150150

151151
#ifdef MIPSEL
152152
#define FB_CPU CpuMipsel
153+
#define RISC_ALIGNMENT
153154
#endif /* mipsel */
154155

155156
#ifdef MIPSEB
156157
#define FB_CPU CpuMips
158+
#define RISC_ALIGNMENT
157159
#endif /* mips */
158160

159161
#ifdef MIPS64EL
160162
#define FB_CPU CpuMips64el
163+
#define RISC_ALIGNMENT
161164
#endif /* mips64el */
162165

163166
#ifdef IA64

0 commit comments

Comments
 (0)