To convert an integer to an unsigned or signed data type,
use IEEE.NUMERIC_STD.all;
you should use
to_unsigned(I,U'length); to_signed(I,S'length)
where i is the integer value and length U is the unsigned length (number of bits).
I have not tested your code and how it works, but my correction on your code is simple,
m1Low := to_integer(divide(to_unsigned(m1Low, N),to_unsigned(m0Low, N)));
you must indicate N where the length of your vector depends on your design. I used to_integer () because your function returns an unsigned value for an integer variable.
Hope these simple notes help you.
source share