mbox series

[v2,0/8] MIPS Bootloader helper

Message ID 20201215064200.28751-1-jiaxun.yang@flygoat.com (mailing list archive)
Headers show
Series MIPS Bootloader helper | expand

Message

Jiaxun Yang Dec. 15, 2020, 6:41 a.m. UTC
v2:
A big reconstruction. rewrite helpers with CPU feature and sepreate
changesets.

Jiaxun Yang (8):
  hw/mips: Make bootloader addresses unsgined
  hw/mips/malta: Use address translation helper to calculate
    bootloader_run_addr
  hw/mips: Use address translation helper to handle ENVP_ADDR
  hw/mips: Add a bootloader helper
  hw/mips: Use bl_gen_kernel_jump to generate bootloaders
  target/mips/addr: Add translation helpers for KSEG1
  hw/mips/malta: Use bootloader helper to set BAR resgiters
  hw/mips/boston: Use bootloader helper to set GCRs

 hw/mips/bootloader.c         | 157 ++++++++++++++++++++++++++++++++
 hw/mips/boston.c             |  62 +++----------
 hw/mips/fuloong2e.c          |  48 +++-------
 hw/mips/malta.c              | 171 ++++++++++++-----------------------
 hw/mips/meson.build          |   2 +-
 include/hw/mips/bootloader.h |  48 ++++++++++
 target/mips/addr.c           |  10 ++
 target/mips/cpu.h            |   2 +
 8 files changed, 306 insertions(+), 194 deletions(-)
 create mode 100644 hw/mips/bootloader.c
 create mode 100644 include/hw/mips/bootloader.h

Comments

Jiaxun Yang Dec. 19, 2020, 6:20 a.m. UTC | #1
在 2020/12/15 下午2:41, Jiaxun Yang 写道:
> v2:
> A big reconstruction. rewrite helpers with CPU feature and sepreate
> changesets.

ping?

>
> Jiaxun Yang (8):
>    hw/mips: Make bootloader addresses unsgined
>    hw/mips/malta: Use address translation helper to calculate
>      bootloader_run_addr
>    hw/mips: Use address translation helper to handle ENVP_ADDR
>    hw/mips: Add a bootloader helper
>    hw/mips: Use bl_gen_kernel_jump to generate bootloaders
>    target/mips/addr: Add translation helpers for KSEG1
>    hw/mips/malta: Use bootloader helper to set BAR resgiters
>    hw/mips/boston: Use bootloader helper to set GCRs
>
>   hw/mips/bootloader.c         | 157 ++++++++++++++++++++++++++++++++
>   hw/mips/boston.c             |  62 +++----------
>   hw/mips/fuloong2e.c          |  48 +++-------
>   hw/mips/malta.c              | 171 ++++++++++++-----------------------
>   hw/mips/meson.build          |   2 +-
>   include/hw/mips/bootloader.h |  48 ++++++++++
>   target/mips/addr.c           |  10 ++
>   target/mips/cpu.h            |   2 +
>   8 files changed, 306 insertions(+), 194 deletions(-)
>   create mode 100644 hw/mips/bootloader.c
>   create mode 100644 include/hw/mips/bootloader.h
>
Philippe Mathieu-Daudé Dec. 19, 2020, 7:04 p.m. UTC | #2
On 12/15/20 7:41 AM, Jiaxun Yang wrote:
> v2:
> A big reconstruction. rewrite helpers with CPU feature and sepreate
> changesets.
> 
> Jiaxun Yang (8):
>   hw/mips: Make bootloader addresses unsgined
>   hw/mips/malta: Use address translation helper to calculate
>     bootloader_run_addr
>   hw/mips: Use address translation helper to handle ENVP_ADDR
>   hw/mips: Add a bootloader helper
>   hw/mips: Use bl_gen_kernel_jump to generate bootloaders
>   target/mips/addr: Add translation helpers for KSEG1
>   hw/mips/malta: Use bootloader helper to set BAR resgiters
>   hw/mips/boston: Use bootloader helper to set GCRs
> 
>  hw/mips/bootloader.c         | 157 ++++++++++++++++++++++++++++++++
>  hw/mips/boston.c             |  62 +++----------
>  hw/mips/fuloong2e.c          |  48 +++-------
>  hw/mips/malta.c              | 171 ++++++++++++-----------------------
>  hw/mips/meson.build          |   2 +-
>  include/hw/mips/bootloader.h |  48 ++++++++++
>  target/mips/addr.c           |  10 ++
>  target/mips/cpu.h            |   2 +
>  8 files changed, 306 insertions(+), 194 deletions(-)
>  create mode 100644 hw/mips/bootloader.c
>  create mode 100644 include/hw/mips/bootloader.h
> 

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Philippe Mathieu-Daudé Jan. 3, 2021, 8:42 p.m. UTC | #3
On 12/15/20 7:41 AM, Jiaxun Yang wrote:
> v2:
> A big reconstruction. rewrite helpers with CPU feature and sepreate
> changesets.
> 
> Jiaxun Yang (8):
>   hw/mips: Make bootloader addresses unsgined
>   hw/mips/malta: Use address translation helper to calculate
>     bootloader_run_addr
>   hw/mips: Use address translation helper to handle ENVP_ADDR
>   hw/mips: Add a bootloader helper
>   hw/mips: Use bl_gen_kernel_jump to generate bootloaders
>   target/mips/addr: Add translation helpers for KSEG1
>   hw/mips/malta: Use bootloader helper to set BAR resgiters
>   hw/mips/boston: Use bootloader helper to set GCRs
> 
>  hw/mips/bootloader.c         | 157 ++++++++++++++++++++++++++++++++
>  hw/mips/boston.c             |  62 +++----------
>  hw/mips/fuloong2e.c          |  48 +++-------
>  hw/mips/malta.c              | 171 ++++++++++++-----------------------
>  hw/mips/meson.build          |   2 +-
>  include/hw/mips/bootloader.h |  48 ++++++++++
>  target/mips/addr.c           |  10 ++
>  target/mips/cpu.h            |   2 +
>  8 files changed, 306 insertions(+), 194 deletions(-)
>  create mode 100644 hw/mips/bootloader.c
>  create mode 100644 include/hw/mips/bootloader.h

Patches 1-3 queued to mips-next.
Philippe Mathieu-Daudé Jan. 6, 2021, 5:50 p.m. UTC | #4
On 1/3/21 9:42 PM, Philippe Mathieu-Daudé wrote:
> On 12/15/20 7:41 AM, Jiaxun Yang wrote:
>> v2:
>> A big reconstruction. rewrite helpers with CPU feature and sepreate
>> changesets.
>>
>> Jiaxun Yang (8):
>>   hw/mips: Make bootloader addresses unsgined
>>   hw/mips/malta: Use address translation helper to calculate
>>     bootloader_run_addr
>>   hw/mips: Use address translation helper to handle ENVP_ADDR
>>   hw/mips: Add a bootloader helper
>>   hw/mips: Use bl_gen_kernel_jump to generate bootloaders
>>   target/mips/addr: Add translation helpers for KSEG1
>>   hw/mips/malta: Use bootloader helper to set BAR resgiters
>>   hw/mips/boston: Use bootloader helper to set GCRs
>>
>>  hw/mips/bootloader.c         | 157 ++++++++++++++++++++++++++++++++
>>  hw/mips/boston.c             |  62 +++----------
>>  hw/mips/fuloong2e.c          |  48 +++-------
>>  hw/mips/malta.c              | 171 ++++++++++++-----------------------
>>  hw/mips/meson.build          |   2 +-
>>  include/hw/mips/bootloader.h |  48 ++++++++++
>>  target/mips/addr.c           |  10 ++
>>  target/mips/cpu.h            |   2 +
>>  8 files changed, 306 insertions(+), 194 deletions(-)
>>  create mode 100644 hw/mips/bootloader.c
>>  create mode 100644 include/hw/mips/bootloader.h
> 
> Patches 1-3 queued to mips-next.

Patch 6 queued to mips-next.