3fb0819 qemu: Make memory alignment helper more universal

Authored and Committed by Peter Krempa 8 years ago
    qemu: Make memory alignment helper more universal
    
    Extract the size determination into a separate function and reuse it
    across the memory device alignment functions. Since later we will need
    to decide the alignment size according to architecture let's pass def to
    the functions.
    
        
file modified
+18 -8
file modified
+2 -1
file modified
+2 -2