mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/xtensa/xtfpga: refactor bootparameters filling
Separate filling first/last tag and size calculation from the kernel command line setup. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
62dbaede80
commit
a9a28591fb
2 changed files with 22 additions and 13 deletions
|
@ -16,6 +16,11 @@ typedef struct BpTag {
|
|||
uint16_t size;
|
||||
} BpTag;
|
||||
|
||||
static inline size_t get_tag_size(size_t data_size)
|
||||
{
|
||||
return data_size + sizeof(BpTag) + 4;
|
||||
}
|
||||
|
||||
static inline ram_addr_t put_tag(ram_addr_t addr, uint16_t tag,
|
||||
size_t size, const void *data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue