From 97bdb44ff4d85bfa2642573f953215ec7abdf8be Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Thu, 24 Mar 2022 12:05:21 +0000 Subject: [PATCH 2/2] =?UTF-8?q?sim:=20fix=20=E2=80=9Calligned=E2=80=9D=20t?= =?UTF-8?q?ypos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sim/common/sim-core.h, sim/ppc/hw_init.c, sim/ppc/std-config.h: Change “alligned” to “aligned”. --- sim/common/sim-core.h | 2 +- sim/ppc/hw_init.c | 2 +- sim/ppc/std-config.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h index 5f152ee0552..1f660e3d0c5 100644 --- a/sim/common/sim-core.h +++ b/sim/common/sim-core.h @@ -248,7 +248,7 @@ extern void *sim_core_trans_addr order (including xor endian). Should the transfer fail, the operation shall abort (no return). - ALIGNED assumes yhat the specified ADDRESS is correctly alligned + ALIGNED assumes yhat the specified ADDRESS is correctly aligned for an N byte transfer (no alignment checks are made). Passing an incorrectly aligned ADDRESS is erroneous. diff --git a/sim/ppc/hw_init.c b/sim/ppc/hw_init.c index 3d58833bb3d..66f205851d5 100644 --- a/sim/ppc/hw_init.c +++ b/sim/ppc/hw_init.c @@ -576,7 +576,7 @@ create_ppc_elf_stack_frame(device *me, const unsigned sizeof_argv = sizeof_arguments(argv); const unsigned_word start_argv = start_envp - sizeof_argv; - /* link register save address - alligned to a 16byte boundary */ + /* link register save address - aligned to a 16byte boundary */ const unsigned_word top_of_stack = ((start_argv - 2 * sizeof(unsigned_word)) & ~0xf); diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h index 0619d1dff19..e02d5946a73 100644 --- a/sim/ppc/std-config.h +++ b/sim/ppc/std-config.h @@ -183,7 +183,7 @@ extern int current_environment; This model. Instead allows both little and big endian modes to either take exceptions or handle miss aligned transfers. - If 0 is specified then for big-endian mode miss alligned accesses + If 0 is specified then for big-endian mode miss aligned accesses are permitted (NONSTRICT_ALIGNMENT) while in little-endian mode the processor will fault on them (STRICT_ALIGNMENT). */ -- 2.25.1