Remove generation field from MemSlot

Not used beside during initialization of MemSlot itself

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-09-12 16:06:25 +01:00
parent 06ef003435
commit 72d2105c92
2 changed files with 1 additions and 3 deletions

View File

@ -3700,9 +3700,8 @@ void QxlDevice::SetupMemSlot(UINT8 Idx, UINT64 pastart, UINT64 paend, UINT8 *vas
SetupHWSlot(Idx + 1, pSlot); SetupHWSlot(Idx + 1, pSlot);
pSlot->generation = m_RomHdr->slot_generation;
high_bits = slot_index << m_SlotGenBits; high_bits = slot_index << m_SlotGenBits;
high_bits |= pSlot->generation; high_bits |= m_RomHdr->slot_generation;
high_bits <<= (64 - (m_SlotGenBits + m_SlotIdBits)); high_bits <<= (64 - (m_SlotGenBits + m_SlotIdBits));
pSlot->high_bits = high_bits; pSlot->high_bits = high_bits;
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__)); DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));

View File

@ -361,7 +361,6 @@ private:
}; };
typedef struct _MemSlot { typedef struct _MemSlot {
UINT8 generation;
UINT64 start_phys_addr; UINT64 start_phys_addr;
UINT64 end_phys_addr; UINT64 end_phys_addr;
UINT8 *start_virt_addr; UINT8 *start_virt_addr;