#
0b46fa08 |
| 17-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Check singlestep_enabled in gen_goto_tb
Do not use goto_tb if we're single-stepping.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edga
target/microblaze: Check singlestep_enabled in gen_goto_tb
Do not use goto_tb if we're single-stepping.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
a2b80dbd |
| 17-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Use DISAS_NORETURN
Both exceptions and gen_goto_tb do not return. Use the official DISAS_NORETURN enumerator for this case. This eliminates all use of DISAS_TB_JUMP.
Tested-by:
target/microblaze: Use DISAS_NORETURN
Both exceptions and gen_goto_tb do not return. Use the official DISAS_NORETURN enumerator for this case. This eliminates all use of DISAS_TB_JUMP.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
1074c0fb |
| 18-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out MSR[C] to its own variable
Having the MSR[C] bit separate will improve arithmetic that operates on the carry bit. Having mb_cpu_read_msr() populate MSR[CC] will prevent
target/microblaze: Split out MSR[C] to its own variable
Having the MSR[C] bit separate will improve arithmetic that operates on the carry bit. Having mb_cpu_read_msr() populate MSR[CC] will prevent the carry copy not matching the carry bit.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
480d29a8 |
| 25-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Tidy mb_tcg_init
All of the tcg globals can be recorded in the same table. Drop the "r" prefix from "rpc" and "rmsr". Obviates the need for regnames[], which was incorrectly not
target/microblaze: Tidy mb_tcg_init
All of the tcg globals can be recorded in the same table. Drop the "r" prefix from "rpc" and "rmsr". Obviates the need for regnames[], which was incorrectly not const.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
9b158558 |
| 24-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Rename env_* tcg variables to cpu_*
This is cpu_imm, cpu_btaken, cpu_iflags, cpu_res_addr and cpu_res_val. It is standard for these file-scope globals to begin with cpu_*.
Tested
target/microblaze: Rename env_* tcg variables to cpu_*
This is cpu_imm, cpu_btaken, cpu_iflags, cpu_res_addr and cpu_res_val. It is standard for these file-scope globals to begin with cpu_*.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
eb2022b7 |
| 24-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Remove helper_debug and env->debug
This is not used, and seems redundant with -d cpu.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edg
target/microblaze: Remove helper_debug and env->debug
This is not used, and seems redundant with -d cpu.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
41ba37c4 |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Tidy raising of exceptions
Split out gen_raise_exception which does no cpu state sync. Rename t_gen_raise_exception to gen_raise_exception_sync to emphasize that it does a sync.
target/microblaze: Tidy raising of exceptions
Split out gen_raise_exception which does no cpu state sync. Rename t_gen_raise_exception to gen_raise_exception_sync to emphasize that it does a sync. Create gen_raise_hw_excp to simplify code raising EXCP_HW_EXCP.
Since there is now only one use of cpu_esr, perform a store instead and remove the TCG variable.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
dbdb77c4 |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Remove cpu_ear
Since cpu_ear is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable.
Tested-by: Edgar E. Ig
target/microblaze: Remove cpu_ear
Since cpu_ear is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
39db007e |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of EDR
The exception data register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_edr is only used during MSR and MTR instructions, we can j
target/microblaze: Fix width of EDR
The exception data register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_edr is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
ccf628b7 |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of BTR
The branch target register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_btr is only used during MSR and MTR instructions, we can ju
target/microblaze: Fix width of BTR
The branch target register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_btr is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
86017ccf |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of FSR
The exception status register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_fsr is only used during MSR and MTR instructions, we can
target/microblaze: Fix width of FSR
The exception status register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_fsr is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
6efd5599 |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of ESR
The exception status register is only 32-bits wide. Do not use a 64-bit type to represent it.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-b
target/microblaze: Fix width of ESR
The exception status register is only 32-bits wide. Do not use a 64-bit type to represent it.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
3e0e16ae |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of MSR
The machine status register is only 32-bits wide. Do not use a 64-bit type to represent it.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by:
target/microblaze: Fix width of MSR
The machine status register is only 32-bits wide. Do not use a 64-bit type to represent it.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
0f96e96b |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Fix width of PC and BTARGET
The program counter is only 32-bits wide. Do not use a 64-bit type to represent it. Since they are so closely related, fix btarget at the same time.
target/microblaze: Fix width of PC and BTARGET
The program counter is only 32-bits wide. Do not use a 64-bit type to represent it. Since they are so closely related, fix btarget at the same time.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
aa28e6d4 |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split the cpu_SR array
Similar to splitting the sregs array, this will allow further fixes and cleanups.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edg
target/microblaze: Split the cpu_SR array
Similar to splitting the sregs array, this will allow further fixes and cleanups.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
af20a93a |
| 20-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out EDR from env->sregs
Finish eliminating the sregs array in favor of individual members. Does not correct the width of EDR, yet.
Tested-by: Edgar E. Iglesias <edgar.igles
target/microblaze: Split out EDR from env->sregs
Finish eliminating the sregs array in favor of individual members. Does not correct the width of EDR, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
6fbf78f2 |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out BTR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of BTR, yet.
Tested-by: Edgar E. Iglesias <edgar.igl
target/microblaze: Split out BTR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of BTR, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
5a8e0136 |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out FSR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of FSR, yet.
Tested-by: Edgar E. Iglesias <edgar.igl
target/microblaze: Split out FSR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of FSR, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
78e9caf2 |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out ESR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of ESR, yet.
Tested-by: Edgar E. Iglesias <edgar.igl
target/microblaze: Split out ESR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of ESR, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
b2e80a3c |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out EAR from env->sregs
Continue eliminating the sregs array in favor of individual members.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E.
target/microblaze: Split out EAR from env->sregs
Continue eliminating the sregs array in favor of individual members.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
2e5282ca |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out MSR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of MSR, yet.
Tested-by: Edgar E. Iglesias <edgar.igl
target/microblaze: Split out MSR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of MSR, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
76e8187d |
| 19-Aug-2020 |
Richard Henderson <richard.henderson@linaro.org> |
target/microblaze: Split out PC from env->sregs
Begin eliminating the sregs array in favor of individual members. Does not correct the width of pc, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias
target/microblaze: Split out PC from env->sregs
Begin eliminating the sregs array in favor of individual members. Does not correct the width of pc, yet.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
#
df82aa7f |
| 24-Aug-2020 |
Peter Maydell <peter.maydell@linaro.org> |
Merge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2020-08-24.for-upstream' into staging
For upstream.
# gpg: Signature made Mon 24 Aug 2020 10:53:42 BST # gpg: using
Merge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2020-08-24.for-upstream' into staging
For upstream.
# gpg: Signature made Mon 24 Aug 2020 10:53:42 BST # gpg: using RSA key AC44FEDC14F7F1EBEDBF415129C596780F6BCA83 # gpg: Good signature from "Edgar E. Iglesias (Xilinx key) <edgar.iglesias@xilinx.com>" [unknown] # gpg: aka "Edgar E. Iglesias <edgar.iglesias@gmail.com>" [full] # Primary key fingerprint: AC44 FEDC 14F7 F1EB EDBF 4151 29C5 9678 0F6B CA83
* remotes/edgar/tags/edgar/xilinx-next-2020-08-24.for-upstream: microblaze: petalogix-s3adsp1800: Add device-tree source microblaze: petalogix-ml605: Add device-tree source target/microblaze: mbar: Trap sleeps from user-space configure: microblaze: Enable mttcg target/microblaze: swx: Use atomic_cmpxchg target/microblaze: mbar: Add support for data-access barriers target/microblaze: mbar: Move LOG_DIS to before sleep target/microblaze: mbar: Transfer dc->rd to mbar_imm
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
#
b4919e7d |
| 17-Aug-2020 |
Edgar E. Iglesias <edgar.iglesias@xilinx.com> |
target/microblaze: mbar: Trap sleeps from user-space
Trap mbar-sleeps from user-space.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reported-by: Richard Henderson <richard.henderso
target/microblaze: mbar: Trap sleeps from user-space
Trap mbar-sleeps from user-space.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reported-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
show more ...
|
#
071cdc67 |
| 14-Aug-2020 |
Edgar E. Iglesias <edgar.iglesias@xilinx.com> |
target/microblaze: swx: Use atomic_cmpxchg
Use atomic_cmpxchg to implement the atomic cmpxchg sequence.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <
target/microblaze: swx: Use atomic_cmpxchg
Use atomic_cmpxchg to implement the atomic cmpxchg sequence.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
show more ...
|