mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/hppa: Make HPPA_BTLB_ENTRIES variable
Depend on hppa_is_pa20. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
bd6243a33f
commit
9cf2112be4
4 changed files with 38 additions and 33 deletions
|
@ -139,6 +139,7 @@ static int tlb_pre_load(void *opaque)
|
|||
static int tlb_post_load(void *opaque, int version_id)
|
||||
{
|
||||
CPUHPPAState *env = opaque;
|
||||
uint32_t btlb_entries = HPPA_BTLB_ENTRIES(env);
|
||||
HPPATLBEntry **unused = &env->tlb_unused;
|
||||
HPPATLBEntry *partial = NULL;
|
||||
|
||||
|
@ -152,7 +153,7 @@ static int tlb_post_load(void *opaque, int version_id)
|
|||
|
||||
if (e->entry_valid) {
|
||||
interval_tree_insert(&e->itree, &env->tlb_root);
|
||||
} else if (i < HPPA_BTLB_ENTRIES) {
|
||||
} else if (i < btlb_entries) {
|
||||
/* btlb not in unused list */
|
||||
} else if (partial == NULL && e->itree.start < e->itree.last) {
|
||||
partial = e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue